Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Whoops, the X11 driver doesn't support fullscreen modes (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 13, 2008
1 parent f8eb663 commit 68d5043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -658,7 +658,10 @@ SDL_SetFullscreenDisplayMode(const SDL_DisplayMode * mode)
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) {
Expand Down

0 comments on commit 68d5043

Please sign in to comment.