summaryrefslogtreecommitdiff
path: root/src/logo.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-04-11 16:52:36 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-04-11 16:52:36 -0700
commitb6c2b5befcdb209eaa8e6d27cc95849f9df13728 (patch)
treece54902a08b217d989cb2e7afc6c3387f13a2d5f /src/logo.c
parent4183fbdc44fd34473e0d99e2ac3034340f06763e (diff)
logo: trivial cleanup
Diffstat (limited to 'src/logo.c')
-rw-r--r--src/logo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/logo.c b/src/logo.c
index 65c890b..c7debf5 100644
--- a/src/logo.c
+++ b/src/logo.c
@@ -42,7 +42,7 @@ void vwm_draw_logo(vwm_t *vwm)
yoff = scr->y_org + ((float)height * .333);
height /= 3;
- /* the logo gets shrunken vertically until it's essentially a flat line */
+ /* the logo gets shrunken until it's essentially a flat line */
while (height > 0 && width > 0) {
/* scale and center the points to the screen size */
for (i = 0; i < VWM_LOGO_POINTS; i++) {
@@ -56,11 +56,10 @@ void vwm_draw_logo(vwm_t *vwm)
XDrawLines(VWM_XDISPLAY(vwm), VWM_XROOT(vwm), VWM_XGC(vwm), points, sizeof(points) / sizeof(XPoint), CoordModeOrigin);
XFlush(VWM_XDISPLAY(vwm));
- /* the width is shrunken as well, but only by as much as it is tall */
+ height -= 2;
yoff++;
width -= 4;
xoff += 2;
- height -= 2;
}
XUngrabServer(VWM_XDISPLAY(vwm));
© All Rights Reserved