From 1afc47511cda76480c009f73eafa9c56fb7d2059 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 8 Jun 2013 08:35:16 -0300 Subject: [PATCH] Fixed the graphics viewport not matching the window size when an unsupported fullscreen resolution is set --- src/modules/window/sdl/Window.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index 986a102da..aa54814a6 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -156,12 +156,9 @@ bool Window::setWindow(int width, int height, graphics::Graphics *graphics, Wind created = true; - if (width == 0 || height == 0) - { - const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo(); - width = videoinfo->current_w; - height = videoinfo->current_h; - } + const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo(); + width = videoinfo->current_w; + height = videoinfo->current_h; int buffers; int samples;