Mail Archives: djgpp/1999/04/17/13:23:33
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 -