video: avoid artefacts when resizing the viewsize when paused.

This commit is contained in:
svdijk 2014-05-04 16:05:32 +02:00
parent 6b79e31d8d
commit 97e149ba9e

View file

@ -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;