Mail Archives: djgpp/1997/01/26/05:14:49
Mike McLean wrote:
>
> I am having trouble doing graphics in Vesa graphics modes. I am
> trying to display in 640x480 colors, what I display to the screen
> displays, yet it also displays garbage over it.
>
> this is what I use to set the mode, should i change something?
>
> set_gfx_mode(GFX_VESA2B, 640, 480, 0, 0);
Add this function to your code before displaying anything:
clear(screen);
Remember: your variables will (almost) always be garbage until
you init them correctly!
Hope this helps,
Bill Lachance
billl AT ysnapse DOT net
- Raw text -