From f4c3ae7c2086cf3d854080d01a6377d1f3829c61 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 11 Jan 2023 14:32:18 +0300 Subject: [PATCH] effects/magiclamp: Fix code style (add {braces} about `if` body) --- src/effects/magiclamp/magiclamp.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/effects/magiclamp/magiclamp.cpp b/src/effects/magiclamp/magiclamp.cpp index 55291d3b24..9648c1e7bb 100644 --- a/src/effects/magiclamp/magiclamp.cpp +++ b/src/effects/magiclamp/magiclamp.cpp @@ -182,10 +182,13 @@ void MagicLampEffect::apply(EffectWindow *w, int mask, WindowPaintData &data, Wi } #define SANITIZE_PROGRESS \ - if (p_progress[0] < 0) \ + if (p_progress[0] < 0) { \ p_progress[0] = -p_progress[0]; \ - if (p_progress[1] < 0) \ - p_progress[1] = -p_progress[1] + } \ + if (p_progress[1] < 0) { \ + p_progress[1] = -p_progress[1]; \ + } + #define SET_QUADS(_SET_A_, _A_, _DA_, _SET_B_, _B_, _O0_, _O1_, _O2_, _O3_) \ quad[0]._SET_A_((icon._A_() + icon._DA_() * (quad[0]._A_() / geo._DA_()) - (quad[0]._A_() + geo._A_())) * p_progress[_O0_] + quad[0]._A_()); \ quad[1]._SET_A_((icon._A_() + icon._DA_() * (quad[1]._A_() / geo._DA_()) - (quad[1]._A_() + geo._A_())) * p_progress[_O1_] + quad[1]._A_()); \