mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
video: avoid artefacts when resizing the viewsize when paused.
This commit is contained in:
parent
6b79e31d8d
commit
97e149ba9e
1 changed files with 7 additions and 0 deletions
|
@ -328,6 +328,7 @@ static void
|
|||
SCR_CalcVrect(void)
|
||||
{
|
||||
int size;
|
||||
static int prev_size;
|
||||
|
||||
/* bound viewsize */
|
||||
if (scr_viewsize->value < 40)
|
||||
|
@ -342,6 +343,12 @@ SCR_CalcVrect(void)
|
|||
|
||||
size = scr_viewsize->value;
|
||||
|
||||
if (size != prev_size)
|
||||
{
|
||||
prev_size = size;
|
||||
cl.force_refdef = true;
|
||||
}
|
||||
|
||||
scr_vrect.width = viddef.width * size / 100;
|
||||
scr_vrect.width &= ~1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue