Do not enforce the Vrect to have even width and heights.

I really don't see why this constraint was ever necessary. It leads to
one line of pixels not rendered either at the bottom or the right edge
of the screen. In GL1 for whatever reasons this line is just black, in
GL3 garbage is drawn.
This commit is contained in:
Yamagi Burmeister 2017-04-10 18:54:01 +02:00 committed by Daniel Gibson
parent 38e60005cb
commit 8c665b826c

View file

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