Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_modes.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | c9b51268668f |
children | 604d73db6802 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
290 /* setup new video mode */ | 290 /* setup new video mode */ |
291 settings.mode = mode; | 291 settings.mode = mode; |
292 settings.refresh = 0; | 292 settings.refresh = 0; |
293 settings.flags = 0; | 293 settings.flags = 0; |
294 | 294 |
295 refreshrate=getenv("SDL_PHOTON_FULLSCREEN_REFRESH"); | 295 refreshrate=SDL_getenv("SDL_PHOTON_FULLSCREEN_REFRESH"); |
296 if (refreshrate!=NULL) | 296 if (refreshrate!=NULL) |
297 { | 297 { |
298 if (sscanf(refreshrate, "%d", &refreshratenum)==1) | 298 if (SDL_sscanf(refreshrate, "%d", &refreshratenum)==1) |
299 { | 299 { |
300 settings.refresh = refreshratenum; | 300 settings.refresh = refreshratenum; |
301 } | 301 } |
302 } | 302 } |
303 | 303 |