diff options
author | okan <okan> | 2012-10-23 16:13:59 +0000 |
---|---|---|
committer | okan <okan> | 2012-10-23 16:13:59 +0000 |
commit | 742bcec5222c199913a651f29b0b8d5238cfc7de (patch) | |
tree | 916d2677c5e191a156498e99b8156cc8c935058e | |
parent | 710347df1b5545daf215a24699540e7940ba6fa7 (diff) | |
download | cwm-742bcec5222c199913a651f29b0b8d5238cfc7de.tar.gz cwm-742bcec5222c199913a651f29b0b8d5238cfc7de.tar.xz cwm-742bcec5222c199913a651f29b0b8d5238cfc7de.zip |
comment what this whole bit does, not just part of it.
-rw-r--r-- | menu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/menu.c b/menu.c index b3ac7ec..7b6e0dc 100644 --- a/menu.c +++ b/menu.c @@ -359,16 +359,15 @@ menu_draw(struct screen_ctx *sc, struct menu_ctx *mc, struct menu_q *menuq, xsave = mc->x; ysave = mc->y; + /* Never hide the top, or left side, of the menu. */ if (mc->x + mc->width >= xmax) mc->x = xmax - mc->width; if (mc->x < xmin) { mc->x = xmin; mc->width = xmax - xmin; } - if (mc->y + mc->height >= ymax) mc->y = ymax - mc->height; - /* never hide the top of the menu */ if (mc->y < ymin) { mc->y = ymin; mc->height = ymax - ymin; |