Mercurial > sdl-ios-xcode
comparison src/video/fbcon/SDL_fbvideo.c @ 6:332f458469f0
Fixed 320x200 video mode on framebuffer console
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 26 Apr 2001 17:05:23 +0000 |
parents | 74212992fb08 |
children | e85e03f195b4 |
comparison
equal
deleted
inserted
replaced
5:ea6d917c9d51 | 6:332f458469f0 |
---|---|
269 return(0); | 269 return(0); |
270 } | 270 } |
271 } | 271 } |
272 | 272 |
273 /* Only allow a mode if we have a valid timing for it */ | 273 /* Only allow a mode if we have a valid timing for it */ |
274 next_mode = 0; | 274 next_mode = -1; |
275 for ( i=0; i<(sizeof(vesa_timings)/sizeof(vesa_timings[0])); ++i ) { | 275 for ( i=0; i<(sizeof(vesa_timings)/sizeof(vesa_timings[0])); ++i ) { |
276 if ( (w == vesa_timings[i].xres) && | 276 if ( (w == vesa_timings[i].xres) && |
277 (h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) { | 277 (h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) { |
278 next_mode = i; | 278 next_mode = i; |
279 break; | 279 break; |
280 } | 280 } |
281 } | 281 } |
282 if ( ! next_mode ) { | 282 if ( next_mode == -1 ) { |
283 #ifdef FBCON_DEBUG | 283 #ifdef FBCON_DEBUG |
284 fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h); | 284 fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h); |
285 #endif | 285 #endif |
286 return(0); | 286 return(0); |
287 } | 287 } |