Mail Archives: djgpp/1997/01/29/20:16:11
Shawn Hargreaves wrote:
>
> Mike McLean writes:
> >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);
>
> I'd use GFX_AUTODETECT, because then your program will work on machines
> that don't support VBE 2.0 as well as ones that do. Also, it would be a
> good idea to check the return value from set_gfx_mode(), because SVGA
> resolutions aren't always available and the function may fail.
>
> That doesn't explain your problem, though. Can you post some source that
> demonstrates the trouble? I need more info before I can say what's
> wrong...
>
> /*
> * Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
> * Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
> */
I had the same problem ... until I installed Univbe.
Dj Infernal
- Raw text -