ref: 8ad56ced43dc9b6f8791143f73a1b37c5662178c
parent: d80ef38af55097761200020acca5c11281876704
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 10 12:08:53 EDT 2020
Remove superfluous brackets
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -157,15 +157,11 @@
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 @@
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;