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

Commit

Permalink
You can't change the resolution on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 12, 2011
1 parent 83729fb commit 76a58bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -694,6 +694,10 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode *
}

/* Actually change the display mode */
if (!_this->SetDisplayMode) {
SDL_SetError("Video driver doesn't support changing display mode");
return -1;
}
if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
return -1;
}
Expand Down

0 comments on commit 76a58bf

Please sign in to comment.