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:
Bill Currie 2013-01-13 14:43:19 +09:00
parent f738e74e9d
commit 82a6861233
2 changed files with 2 additions and 12 deletions

View file

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

View file

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