From e70597a7894c4b1bb24f33cb0a1e8d15a6a3a591 Mon Sep 17 00:00:00 2001 From: Michael Werle Date: Sun, 23 Oct 2011 21:22:50 +0000 Subject: [PATCH] Fix Linux SDL full-screen mode for odd resolutions. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4630 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/SDL/MyOpenGLView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL/MyOpenGLView.m b/src/SDL/MyOpenGLView.m index 9a1bc933..35f22bac 100644 --- a/src/SDL/MyOpenGLView.m +++ b/src/SDL/MyOpenGLView.m @@ -725,7 +725,7 @@ MA 02110-1301, USA. } // change width in 4 pixels steps! (see snapShot method) int w=viewSize.width; - if (w & 3) w = w + 4 - (w & 3); + if (!fullScreen && (w & 3)) w = w + 4 - (w & 3); viewSize.width=w; surface = SDL_SetVideoMode((int)viewSize.width, (int)viewSize.height, 32, videoModeFlags);