Mercurial > sdl-ios-xcode
comparison src/video/fbcon/SDL_fbvideo.c @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | c71e05b4dc2e |
children | 04499d3e1b6b |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
31 #include <asm/page.h> /* For definition of PAGE_SIZE */ | 31 #include <asm/page.h> /* For definition of PAGE_SIZE */ |
32 #include <sys/io.h> /* For ioperm() */ | 32 #include <sys/io.h> /* For ioperm() */ |
33 | 33 |
34 #include "SDL_video.h" | 34 #include "SDL_video.h" |
35 #include "SDL_mouse.h" | 35 #include "SDL_mouse.h" |
36 #include "SDL_sysvideo.h" | 36 #include "../SDL_sysvideo.h" |
37 #include "SDL_pixels_c.h" | 37 #include "../SDL_pixels_c.h" |
38 #include "SDL_events_c.h" | 38 #include "../../events/SDL_events_c.h" |
39 #include "SDL_fbvideo.h" | 39 #include "SDL_fbvideo.h" |
40 #include "SDL_fbmouse_c.h" | 40 #include "SDL_fbmouse_c.h" |
41 #include "SDL_fbevents_c.h" | 41 #include "SDL_fbevents_c.h" |
42 #include "SDL_fb3dfx.h" | 42 #include "SDL_fb3dfx.h" |
43 #include "SDL_fbmatrox.h" | 43 #include "SDL_fbmatrox.h" |
430 return b->w - a->w; | 430 return b->w - a->w; |
431 else | 431 else |
432 return b->h - a->h; | 432 return b->h - a->h; |
433 } | 433 } |
434 | 434 |
435 static int FB_SortModes(_THIS) | 435 static void FB_SortModes(_THIS) |
436 { | 436 { |
437 int i; | 437 int i; |
438 for ( i=0; i<NUM_MODELISTS; ++i ) { | 438 for ( i=0; i<NUM_MODELISTS; ++i ) { |
439 if ( SDL_nummodes[i] > 0 ) { | 439 if ( SDL_nummodes[i] > 0 ) { |
440 SDL_qsort(SDL_modelist[i], SDL_nummodes[i], sizeof *SDL_modelist[i], cmpmodes); | 440 SDL_qsort(SDL_modelist[i], SDL_nummodes[i], sizeof *SDL_modelist[i], cmpmodes); |
462 if ( console_fd < 0 ) { | 462 if ( console_fd < 0 ) { |
463 SDL_SetError("Unable to open %s", SDL_fbdev); | 463 SDL_SetError("Unable to open %s", SDL_fbdev); |
464 return(-1); | 464 return(-1); |
465 } | 465 } |
466 | 466 |
467 #ifndef DISABLE_THREADS | 467 #if !SDL_THREADS_DISABLED |
468 /* Create the hardware surface lock mutex */ | 468 /* Create the hardware surface lock mutex */ |
469 hw_lock = SDL_CreateMutex(); | 469 hw_lock = SDL_CreateMutex(); |
470 if ( hw_lock == NULL ) { | 470 if ( hw_lock == NULL ) { |
471 SDL_SetError("Unable to create lock mutex"); | 471 SDL_SetError("Unable to create lock mutex"); |
472 FB_VideoQuit(this); | 472 FB_VideoQuit(this); |