comparison src/video/gapi/SDL_gapivideo.c @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 3692456e7b0f
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1337:c687f06c7473 1338:604d73db6802
30 // TODO: test on be300 and HPC ( check WinDib fullscreen keys catching ) 30 // TODO: test on be300 and HPC ( check WinDib fullscreen keys catching )
31 // TODO: test on smartphones 31 // TODO: test on smartphones
32 // TODO: windib on SH3 PPC2000 landscape test 32 // TODO: windib on SH3 PPC2000 landscape test
33 // TODO: optimize 8bpp landscape mode 33 // TODO: optimize 8bpp landscape mode
34 34
35 #include <stdio.h>
36 #include <stdlib.h>
37 #include <string.h>
38
39 #include "SDL.h" 35 #include "SDL.h"
36 #include "SDL_stdlib.h"
40 #include "SDL_error.h" 37 #include "SDL_error.h"
41 #include "SDL_video.h" 38 #include "SDL_video.h"
42 #include "SDL_mouse.h" 39 #include "SDL_mouse.h"
43 #include "SDL_sysvideo.h" 40 #include "SDL_sysvideo.h"
44 #include "SDL_pixels_c.h" 41 #include "SDL_pixels_c.h"
477 } 474 }
478 475
479 /* Sort the mode lists */ 476 /* Sort the mode lists */
480 for ( i=0; i<NUM_MODELISTS; ++i ) { 477 for ( i=0; i<NUM_MODELISTS; ++i ) {
481 if ( gapi->SDL_nummodes[i] > 0 ) { 478 if ( gapi->SDL_nummodes[i] > 0 ) {
482 qsort(gapi->SDL_modelist[i], gapi->SDL_nummodes[i], sizeof *gapi->SDL_modelist[i], cmpmodes); 479 SDL_qsort(gapi->SDL_modelist[i], gapi->SDL_nummodes[i], sizeof *gapi->SDL_modelist[i], cmpmodes);
483 } 480 }
484 } 481 }
485 482
486 vformat->BitsPerPixel = this->hidden->gxProperties.cBPP < 8 ? 16 : (unsigned char)this->hidden->gxProperties.cBPP; 483 vformat->BitsPerPixel = this->hidden->gxProperties.cBPP < 8 ? 16 : (unsigned char)this->hidden->gxProperties.cBPP;
487 484