comparison src/video/bwindow/SDL_sysvideo.cc @ 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
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* BWindow based framebuffer implementation */ 23 /* BWindow based framebuffer implementation */
24 24
25 #include <stdlib.h>
26 #include <string.h>
27
28 #include <stdio.h>
29 #include <unistd.h> 25 #include <unistd.h>
30 26
31 #include "SDL.h" 27 #include "SDL.h"
28 #include "SDL_stdlib.h"
29 #include "SDL_string.h"
32 #include "SDL_BeApp.h" 30 #include "SDL_BeApp.h"
33 #include "SDL_BWin.h" 31 #include "SDL_BWin.h"
34 #include "SDL_timer.h" 32 #include "SDL_timer.h"
35 #include "blank_cursor.h" 33 #include "blank_cursor.h"
36 34
289 return(-1); 287 return(-1);
290 } 288 }
291 289
292 /* Get the video modes we can switch to in fullscreen mode */ 290 /* Get the video modes we can switch to in fullscreen mode */
293 bscreen.GetModeList(&modes, &nmodes); 291 bscreen.GetModeList(&modes, &nmodes);
294 qsort(modes, nmodes, sizeof *modes, CompareModes); 292 SDL_qsort(modes, nmodes, sizeof *modes, CompareModes);
295 for ( i=0; i<nmodes; ++i ) { 293 for ( i=0; i<nmodes; ++i ) {
296 bpp = ColorSpaceToBitsPerPixel(modes[i].space); 294 bpp = ColorSpaceToBitsPerPixel(modes[i].space);
297 //if ( bpp != 0 ) { // There are bugs in changing colorspace 295 //if ( bpp != 0 ) { // There are bugs in changing colorspace
298 if ( modes[i].space == saved_mode.space ) { 296 if ( modes[i].space == saved_mode.space ) {
299 BE_AddMode(_this, ((bpp+7)/8)-1, 297 BE_AddMode(_this, ((bpp+7)/8)-1,