mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-25 12:21:29 +00:00
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:
parent
ee03e7f03a
commit
5e85fbc8b9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue