From 82a6861233c2ef71ab954aed35ce34dac89a6a3a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 13 Jan 2013 14:43:19 +0900 Subject: [PATCH] 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. --- libs/video/renderer/sw/screen.c | 7 +------ libs/video/renderer/sw32/screen.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/libs/video/renderer/sw/screen.c b/libs/video/renderer/sw/screen.c index 0c0cfafd8..87f4ec40b 100644 --- a/libs/video/renderer/sw/screen.c +++ b/libs/video/renderer/sw/screen.c @@ -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); } diff --git a/libs/video/renderer/sw32/screen.c b/libs/video/renderer/sw32/screen.c index 6a727667d..b77325904 100644 --- a/libs/video/renderer/sw32/screen.c +++ b/libs/video/renderer/sw32/screen.c @@ -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); }