From 8ad56ced43dc9b6f8791143f73a1b37c5662178c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 10 Sep 2020 16:08:53 +0100 Subject: [PATCH] Remove superfluous brackets --- src/Backends/Rendering/Software.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Backends/Rendering/Software.cpp b/src/Backends/Rendering/Software.cpp index a89eaa92..ce0db6da 100644 --- a/src/Backends/Rendering/Software.cpp +++ b/src/Backends/Rendering/Software.cpp @@ -157,15 +157,11 @@ ATTRIBUTE_HOT void RenderBackend_Blit(RenderBackend_Surface *source_surface, con overflow = (x + (rect_clamped.right - rect_clamped.left)) - destination_surface->width; if (overflow > 0) - { rect_clamped.right -= overflow; - } overflow = (y + (rect_clamped.bottom - rect_clamped.top)) - destination_surface->height; if (overflow > 0) - { rect_clamped.bottom -= overflow; - } if (rect_clamped.bottom - rect_clamped.top <= 0) return; @@ -229,27 +225,19 @@ ATTRIBUTE_HOT void RenderBackend_ColourFill(RenderBackend_Surface *surface, cons overflow = 0 - rect_clamped.left; if (overflow > 0) - { rect_clamped.left += overflow; - } overflow = 0 - rect_clamped.top; if (overflow > 0) - { rect_clamped.top += overflow; - } overflow = rect_clamped.right - surface->width; if (overflow > 0) - { rect_clamped.right -= overflow; - } overflow = rect_clamped.bottom - surface->height; if (overflow > 0) - { rect_clamped.bottom -= overflow; - } if (rect_clamped.bottom - rect_clamped.top <= 0) return;