summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorChristopher Lang <christopher.lang.256@gmail.com>2023-07-27 13:46:44 +0100
committerChristopher Lang <christopher.lang.256@gmail.com>2023-07-27 13:46:44 +0100
commit028aeda9fc3c45022e581a3c89cbff95703bbf24 (patch)
tree311e0c7b458909db0f22bdbac1487c91606a27d6 /x.c
parent36d225d71d448bfe307075580f0d8ef81eeb5a87 (diff)
Fix indentation
Diffstat (limited to 'x.c')
-rw-r--r--x.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/x.c b/x.c
index e2ec9db..ec7b39c 100644
--- a/x.c
+++ b/x.c
@@ -319,13 +319,13 @@ numlock(const Arg *dummy)
void
changealpha(const Arg *arg)
{
- if((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0))
- alpha += arg->f;
- alpha = clamp(alpha, 0.0, 1.0);
- alphaUnfocus = clamp(alpha-alphaOffset, 0.0, 1.0);
+ if((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0))
+ alpha += arg->f;
+ alpha = clamp(alpha, 0.0, 1.0);
+ alphaUnfocus = clamp(alpha-alphaOffset, 0.0, 1.0);
- xloadcols();
- redraw();
+ xloadcols();
+ redraw();
}
void
@@ -383,11 +383,11 @@ evrow(XEvent *e)
float
clamp(float value, float lower, float upper) {
- if(value < lower)
- return lower;
- if(value > upper)
- return upper;
- return value;
+ if(value < lower)
+ return lower;
+ if(value > upper)
+ return upper;
+ return value;
}
void
@@ -1663,8 +1663,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
/* Render underline and strikethrough. */
if (base.mode & ATTR_UNDERLINE) {
- XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1,
- width, 1);
+ XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, width, 1);
}
if (base.mode & ATTR_STRUCK) {