mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Move the call to VID_Update out of the if blocks.
This makes it obvious that VID_Update is unconditionally called when SCR_UpdateScreen is called.
This commit is contained in:
parent
f738e74e9d
commit
82a6861233
2 changed files with 2 additions and 12 deletions
|
@ -250,23 +250,18 @@ SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
|
|||
vrect.width = vid.width;
|
||||
vrect.height = vid.height;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
} else if (scr_copytop) {
|
||||
vrect.x = 0;
|
||||
vrect.y = 0;
|
||||
vrect.width = vid.width;
|
||||
vrect.height = vid.height - vr_data.lineadj;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
} else {
|
||||
vrect.x = scr_vrect.x;
|
||||
vrect.y = scr_vrect.y;
|
||||
vrect.width = scr_vrect.width;
|
||||
vrect.height = scr_vrect.height;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
}
|
||||
VID_Update (&vrect);
|
||||
}
|
||||
|
|
|
@ -208,23 +208,18 @@ sw32_SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs
|
|||
vrect.width = vid.width;
|
||||
vrect.height = vid.height;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
} else if (scr_copytop) {
|
||||
vrect.x = 0;
|
||||
vrect.y = 0;
|
||||
vrect.width = vid.width;
|
||||
vrect.height = vid.height - vr_data.lineadj;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
} else {
|
||||
vrect.x = scr_vrect.x;
|
||||
vrect.y = scr_vrect.y;
|
||||
vrect.width = scr_vrect.width;
|
||||
vrect.height = scr_vrect.height;
|
||||
vrect.next = 0;
|
||||
|
||||
VID_Update (&vrect);
|
||||
}
|
||||
VID_Update (&vrect);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue