effects/magiclamp: Fix code style (add {braces} about if body)

This commit is contained in:
ivan tkachenko 2023-01-11 14:32:18 +03:00
parent 301e57169d
commit f4c3ae7c20
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -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_()); \