Mail Archives: djgpp/1997/01/28/01:22:06
Well, here is the exact code i am using.
main()
{
set_gfx_mode(GFX_VESA2B, 640, 480, 0, 0);
clear(screen);
line(screen,4,1,4,34,1);
line(screen,4,15,20,1,1);
line(screen,4,15,24,34,1);
line(screen,35,1,50,1,1);
line(screen,43,1,43,34,1);
line(screen,35,34,50,34,1);
line(screen,60,1,70,1,1);
line(screen,65,1,65,34,1);
line(screen,60,34,70,34,1);
line(screen,65,1,85,34,1);
line(screen,85,1,85,34,1);
line(screen,85,1,80,1,1);
line(screen,85,1,90,1,1);
line(screen,100,1,115,1,1);
line(screen,100,1,100,34,1);
line(screen,100,34,120,34,1);
line(screen,120,34,120,18,1);
line(screen,120,18,110,18,1);
line(screen,130,34,140,1,1);
line(screen,140,1,155,34,1);
line(screen,140,20,150,20,1);
>
>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'.
> */
- Raw text -