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
This commit is contained in:
parent
4665353ee8
commit
e70597a789
@ -725,7 +725,7 @@ MA 02110-1301, USA.
|
|||||||
}
|
}
|
||||||
// change width in 4 pixels steps! (see snapShot method)
|
// change width in 4 pixels steps! (see snapShot method)
|
||||||
int w=viewSize.width;
|
int w=viewSize.width;
|
||||||
if (w & 3) w = w + 4 - (w & 3);
|
if (!fullScreen && (w & 3)) w = w + 4 - (w & 3);
|
||||||
viewSize.width=w;
|
viewSize.width=w;
|
||||||
surface = SDL_SetVideoMode((int)viewSize.width, (int)viewSize.height, 32, videoModeFlags);
|
surface = SDL_SetVideoMode((int)viewSize.width, (int)viewSize.height, 32, videoModeFlags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user