Browse Source

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

Alex Szpakowski 12 years ago
parent
commit
1afc47511c
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/modules/window/sdl/Window.cpp

+ 3 - 6
src/modules/window/sdl/Window.cpp

@@ -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();
-		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 buffers;
 	int samples;
 	int samples;