Allow arbitrary screen sizes.

Without this change the width of the render windows was required to be a
multiple of 8, making it unable to use strange resolutions like 1366x768.
This change is based upon an idea submitted by "tmcp" in pull request
27.
This commit is contained in:
Yamagi Burmeister 2013-10-12 09:29:19 +02:00
parent ee03e7f03a
commit 5e85fbc8b9

View file

@ -343,7 +343,7 @@ SCR_CalcVrect(void)
size = scr_viewsize->value;
scr_vrect.width = viddef.width * size / 100;
scr_vrect.width &= ~7;
scr_vrect.width &= ~1;
scr_vrect.height = viddef.height * size / 100;
scr_vrect.height &= ~1;