delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/10/21:45:19

From: "D. Huizenga" <skis AT concentric DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and RGB
Date: 09 Apr 1998 22:13:32 EDT
Organization: Student
Lines: 21
Message-ID: <352D804B.21E8A8EB@concentric.net>
References: <352D39AC DOT 3FD60C22 AT sunlink DOT net>
NNTP-Posting-Host: ts003d08.gps-mi.concentric.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Robbins wrote:
> 
> Hello,
> Why does the line of code  RGB white = { 63, 63, 63 }
> cause Allegro to crash? It is from the documentation.
> I wish to use set_color(0, white); to set the screen
> background color to white after loading a bitmap.

Is that the _exact code_ that you use?
This shouldn't even compile. Set_color expects a pointer
to the RGB white.  This would be "set_color(0, &white);.

--
Dan Huizenga
Email: Skis AT Concentric DOT net
Visit my page: http://www.concentric.net/~skis
The Official Home Page of BGui and The Allegro Wishlist.
The Official Mirror Page of the G_Windows GenII Project.

{Finally got around to changing this. I think I posted       }
{the BGui .3 ANNOUNCE with the "BGui is untouched" one :-).. }

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019