delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/17/13:23:33

Message-ID: <3718D161.DDD635FF@lycosmail.com>
Date: Sat, 17 Apr 1999 14:22:25 -0400
From: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: True Color
References: <7fa615$8df AT chronicle DOT concentric DOT net>
Reply-To: djgpp AT delorie DOT com

Why use clear_to_color(dbuffer, 0)??, just use clear(dbuffer). And why did you
set the palette????? Remove that statement, it shouldn't be necessary.

Paradox wrote:

> I'm new to using truecolors in my programs. Someone told me that I didn't
> need to use palettes if I use Truecolors, if so, do I load a bitmap such as
> bmp = create_bitmap("blah.bmp", NULL)? I tried doing this and it would load
> a bitmap, but the background was goofy. I cleared the double buffer using
> clear_to_color(dbuffer, 0), but 0 was a different color each time. If I used
> clear(dbuffer) I had the sampe problem. Also, I keep getting draw_sprite
> errors from symify from this line....
>
> void load_ants(void) {
>   int x;
>   for(x=0; x<antsalive; x++) { draw_sprite(ego, ants[x].ant, ants[x].loc_x,
> ants[x].loc_y); }
> }
>
> All variables are declared.
>
> My trucolors are set as such...
>
>   set_color_depth(16);
>   set_color_conversion(COLORCONV_TOTAL);
>   set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
>   set_palette(pal);
>
> I tried color depth under gfx_mode without much luck.
>
> Thanks
>
> Paradox

- Raw text -


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