lel

Fork of Hiltjo's Farbfeld image viewer. (It was just for fun, not much use)
Log | Files | Refs | README | LICENSE

commit 53b38e0a1a143a7395e1bdf919be2f6b689c94c4
parent f1bec0dc4be66c83d97b61138277efad36365254
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun, 18 Apr 2021 02:38:23 -0700

Invert the running variable naming it done

This way it doesn't have to be manually initialized. It's very minor
but it bugged me.

Diffstat:
Mlel.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lel.c b/lel.c @@ -50,7 +50,7 @@ static Window win; static GC gc; static XColor bg; static int screen, xfd; -static int running = 1; +static int done; static int winwidth = 0, winheight = 0; static int winx, winy, reqwinwidth = 320, reqwinheight = 240; static float zoominc = 0.25; @@ -380,7 +380,7 @@ keypress(XEvent *ev) switch(key) { case XK_Escape: case XK_q: - running = 0; + done = 1; break; case XK_Left: case XK_h: @@ -514,7 +514,7 @@ run(void) { XEvent ev; - while (running && !XNextEvent(dpy, &ev)) + while (!done && !XNextEvent(dpy, &ev)) handleevent(&ev); }