Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 4472:791b3256fb22
Mostly cleaned up warnings with -Wmissing-prototypes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 26 Jun 2010 08:56:48 -0700 |
parents | 9fa97c6b0014 |
children | dbbfdb9ea716 22aa6a631d34 |
comparison
equal
deleted
inserted
replaced
4471:11cedc036ca1 | 4472:791b3256fb22 |
---|---|
302 } | 302 } |
303 return _this->name; | 303 return _this->name; |
304 } | 304 } |
305 | 305 |
306 SDL_VideoDevice * | 306 SDL_VideoDevice * |
307 SDL_GetVideoDevice() | 307 SDL_GetVideoDevice(void) |
308 { | 308 { |
309 return _this; | 309 return _this; |
310 } | 310 } |
311 | 311 |
312 int | 312 int |
713 SDL_BITSPERPIXEL(display_mode.format)); | 713 SDL_BITSPERPIXEL(display_mode.format)); |
714 } | 714 } |
715 } | 715 } |
716 | 716 |
717 return 0; | 717 return 0; |
718 } | |
719 | |
720 int | |
721 SDL_SetDisplayMode(const SDL_DisplayMode * mode) | |
722 { | |
723 if (!_this) { | |
724 SDL_UninitializedVideo(); | |
725 return -1; | |
726 } | |
727 return SDL_SetDisplayModeForDisplay(SDL_CurrentDisplay, mode); | |
728 } | 718 } |
729 | 719 |
730 int | 720 int |
731 SDL_SetWindowDisplayMode(SDL_Window * window, const SDL_DisplayMode * mode) | 721 SDL_SetWindowDisplayMode(SDL_Window * window, const SDL_DisplayMode * mode) |
732 { | 722 { |