summaryrefslogtreecommitdiff
path: root/src/logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logo.c')
-rw-r--r--src/logo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logo.c b/src/logo.c
index c853db9..65c890b 100644
--- a/src/logo.c
+++ b/src/logo.c
@@ -43,7 +43,7 @@ void vwm_draw_logo(vwm_t *vwm)
height /= 3;
/* the logo gets shrunken vertically until it's essentially a flat line */
- while (height -= 2) {
+ while (height > 0 && width > 0) {
/* scale and center the points to the screen size */
for (i = 0; i < VWM_LOGO_POINTS; i++) {
points[i].x = xoff + (i * .2 * (float)width);
@@ -60,6 +60,7 @@ void vwm_draw_logo(vwm_t *vwm)
yoff++;
width -= 4;
xoff += 2;
+ height -= 2;
}
XUngrabServer(VWM_XDISPLAY(vwm));
© All Rights Reserved