summaryrefslogtreecommitdiff
path: root/sent.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2015-04-30 22:00:14 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-04-30 22:00:14 +0200
commit036d77fffed4ba88346438d88c0d369578a9a604 (patch)
tree8507900805f2173132f5a84ee0c418aa99a1412d /sent.c
parent8606d72cedf0199e2cf03e421488f5b88896cecf (diff)
minor style adaptions
Diffstat (limited to 'sent.c')
-rw-r--r--sent.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sent.c b/sent.c
index 39850c0..775ed03 100644
--- a/sent.c
+++ b/sent.c
@@ -20,9 +20,9 @@
char *argv0;
/* macros */
-#define LEN(a) (sizeof(a) / sizeof(a)[0])
-#define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
-#define MAXFONTSTRLEN 128
+#define LEN(a) (sizeof(a) / sizeof(a)[0])
+#define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
+#define MAXFONTSTRLEN 128
typedef enum {
NONE = 0,
@@ -472,12 +472,13 @@ void xdraw()
drw_rect(d, 0, 0, xw.w, xw.h, 1, 1);
drw_text(d, (xw.w - width) / 2, (xw.h - height) / 2, width, height, slides[idx].text, 0);
drw_map(d, xw.win, 0, 0, xw.w, xw.h);
- } else if (!(im->state & LOADED) && !pngread(im))
+ } else if (!(im->state & LOADED) && !pngread(im)) {
eprintf("could not read image %s", slides[idx].text + 1);
- else if (!(im->state & SCALED) && !pngprepare(im))
+ } else if (!(im->state & SCALED) && !pngprepare(im)) {
eprintf("could not prepare image %s for drawing", slides[idx].text + 1);
- else if (!(im->state & DRAWN))
+ } else if (!(im->state & DRAWN)) {
pngdraw(im);
+ }
}
void xhints()