Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 2876:3fcb0d447bcd
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 Dec 2008 07:19:55 +0000 |
parents | 91a7e08cd238 |
children | 9dde605c7540 |
comparison
equal
deleted
inserted
replaced
2875:91a7e08cd238 | 2876:3fcb0d447bcd |
---|---|
121 }; | 121 }; |
122 | 122 |
123 static SDL_VideoDevice *_this = NULL; | 123 static SDL_VideoDevice *_this = NULL; |
124 | 124 |
125 /* Various local functions */ | 125 /* Various local functions */ |
126 static void SDL_UpdateWindowGrab(SDL_Window *window); | 126 static void SDL_UpdateWindowGrab(SDL_Window * window); |
127 | 127 |
128 static int | 128 static int |
129 cmpmodes(const void *A, const void *B) | 129 cmpmodes(const void *A, const void *B) |
130 { | 130 { |
131 SDL_DisplayMode a = *(const SDL_DisplayMode *) A; | 131 SDL_DisplayMode a = *(const SDL_DisplayMode *) A; |
1208 } | 1208 } |
1209 SDL_UpdateWindowGrab(window); | 1209 SDL_UpdateWindowGrab(window); |
1210 } | 1210 } |
1211 | 1211 |
1212 static void | 1212 static void |
1213 SDL_UpdateWindowGrab(SDL_Window *window) | 1213 SDL_UpdateWindowGrab(SDL_Window * window) |
1214 { | 1214 { |
1215 if ((window->flags & SDL_WINDOW_INPUT_FOCUS) && _this->SetWindowGrab) { | 1215 if ((window->flags & SDL_WINDOW_INPUT_FOCUS) && _this->SetWindowGrab) { |
1216 _this->SetWindowGrab(_this, window); | 1216 _this->SetWindowGrab(_this, window); |
1217 } | 1217 } |
1218 } | 1218 } |
1263 SDL_SetDisplayMode(&display->fullscreen_mode); | 1263 SDL_SetDisplayMode(&display->fullscreen_mode); |
1264 } | 1264 } |
1265 if (display->gamma && _this->SetDisplayGammaRamp) { | 1265 if (display->gamma && _this->SetDisplayGammaRamp) { |
1266 _this->SetDisplayGammaRamp(_this, display->gamma); | 1266 _this->SetDisplayGammaRamp(_this, display->gamma); |
1267 } | 1267 } |
1268 if ((window->flags & (SDL_WINDOW_INPUT_GRABBED|SDL_WINDOW_FULLSCREEN)) && _this->SetWindowGrab) { | 1268 if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) |
1269 && _this->SetWindowGrab) { | |
1269 _this->SetWindowGrab(_this, window); | 1270 _this->SetWindowGrab(_this, window); |
1270 } | 1271 } |
1271 } | 1272 } |
1272 | 1273 |
1273 void | 1274 void |
1280 SDL_SetDisplayMode(NULL); | 1281 SDL_SetDisplayMode(NULL); |
1281 } | 1282 } |
1282 if (display->gamma && _this->SetDisplayGammaRamp) { | 1283 if (display->gamma && _this->SetDisplayGammaRamp) { |
1283 _this->SetDisplayGammaRamp(_this, display->saved_gamma); | 1284 _this->SetDisplayGammaRamp(_this, display->saved_gamma); |
1284 } | 1285 } |
1285 if ((window->flags & (SDL_WINDOW_INPUT_GRABBED|SDL_WINDOW_FULLSCREEN)) && _this->SetWindowGrab) { | 1286 if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) |
1287 && _this->SetWindowGrab) { | |
1286 _this->SetWindowGrab(_this, window); | 1288 _this->SetWindowGrab(_this, window); |
1287 } | 1289 } |
1288 } | 1290 } |
1289 | 1291 |
1290 SDL_WindowID | 1292 SDL_WindowID |