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;