diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-04-11 16:52:36 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-04-11 16:52:36 -0700 |
commit | b6c2b5befcdb209eaa8e6d27cc95849f9df13728 (patch) | |
tree | ce54902a08b217d989cb2e7afc6c3387f13a2d5f /src | |
parent | 4183fbdc44fd34473e0d99e2ac3034340f06763e (diff) |
logo: trivial cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/logo.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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)); |