Mercurial > sdl-ios-xcode
changeset 2869:2fe507a2ef7d
Whoops, the X11 driver doesn't support fullscreen modes (yet)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 13 Dec 2008 13:30:11 +0000 |
parents | 3b595278f813 |
children | b801df19835f |
files | src/video/SDL_video.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_video.c Sat Dec 13 13:10:53 2008 +0000 +++ b/src/video/SDL_video.c Sat Dec 13 13:30:11 2008 +0000 @@ -658,7 +658,10 @@ if (!mode) { mode = &display->desktop_mode; } - SDL_GetClosestDisplayMode(mode, &fullscreen_mode); + if (!SDL_GetClosestDisplayMode(mode, &fullscreen_mode)) { + SDL_SetError("Couldn't find display mode match"); + return -1; + } if (SDL_memcmp (&fullscreen_mode, &display->fullscreen_mode, sizeof(fullscreen_mode)) == 0) {