effects/magiclamp: Fix code style (add {braces} about if
body)
This commit is contained in:
parent
301e57169d
commit
f4c3ae7c20
1 changed files with 6 additions and 3 deletions
|
@ -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_()); \
|
||||
|
|
Loading…
Reference in a new issue