Fixed the graphics viewport not matching the window size when an unsupported fullscreen resolution is set

This commit is contained in:
Alex Szpakowski
2013-06-08 08:35:16 -03:00
parent c0998cd996
commit 1afc47511c
-3
View File
@@ -156,12 +156,9 @@ bool Window::setWindow(int width, int height, graphics::Graphics *graphics, Wind
created = true; created = true;
if (width == 0 || height == 0)
{
const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo(); const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo();
width = videoinfo->current_w; width = videoinfo->current_w;
height = videoinfo->current_h; height = videoinfo->current_h;
}
int buffers; int buffers;
int samples; int samples;