version 1.2 | | version 1.3 |
---|
| | |
ggiPutBox(screenvis, 0, 0, grd_curscreen->sc_w, grd_curscreen->sc_h, screenbuffer); | | ggiPutBox(screenvis, 0, 0, grd_curscreen->sc_w, grd_curscreen->sc_h, screenbuffer); |
} | | } |
| | |
int gr_set_mode(int mode) | | int gr_set_mode(u_int32_t mode) |
{ | | { |
unsigned int w, h, r; | | unsigned int w, h; |
ggi_mode other_mode; | | ggi_mode other_mode; |
| | |
#ifdef NOGRAPH | | #ifdef NOGRAPH |
return 0; | | return 0; |
#endif | | #endif |
switch(mode) | | if (mode<=0) |
{ | | |
case SM_ORIGINAL: | | |
return 0; | | return 0; |
case 0: | | |
w = 320; r = 320; h = 200; | | w=SM_W(mode); |
break; | | h=SM_H(mode); |
case SM_320x240U: | | |
w = 320; r = 320; h = 240; | | |
break; | | |
case SM_320x400U: | | |
w = 320; r = 320; h = 400; | | |
break; | | |
case SM_640x400V: | | |
w = 640; r = 640; h = 400; | | |
break; | | |
case SM_640x480V: | | |
w = 640; r = 640; h = 480; | | |
break; | | |
case SM_800x600V: | | |
w = 800; r = 800; h = 600; | | |
break; | | |
case SM_1024x768V: | | |
w = 1024; r = 1024; h = 768; | | |
break; | | |
default: | | |
Error("Unsupported video mode!\n"); | | |
exit(0); | | |
break; | | |
} | | |
| | |
gr_palette_clear(); | | gr_palette_clear(); |
| | |