From a49c4c7682756d606acd63ad2b4a53e21ad36eb1 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 4 Mar 2025 19:44:58 +0100 Subject: [PATCH] static analysis: duplicate assignment --- rpcs3/Emu/RSX/rsx_utils.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/rsx_utils.h b/rpcs3/Emu/RSX/rsx_utils.h index 46ff619577..37874933f4 100644 --- a/rpcs3/Emu/RSX/rsx_utils.h +++ b/rpcs3/Emu/RSX/rsx_utils.h @@ -500,10 +500,10 @@ namespace rsx { if (clip_x >= parent_width) { - if (clip_width < parent_width) - width = clip_width; - else + if (clip_width >= parent_width) width = parent_width; + //else + // width = clip_width; // Already initialized with clip_width x = static_cast(0); } @@ -520,10 +520,10 @@ namespace rsx { if (clip_y >= parent_height) { - if (clip_height < parent_height) - height = clip_height; - else + if (clip_height >= parent_height) height = parent_height; + //else + // height = clip_height; // Already initialized with clip_height y = static_cast(0); }