From 276cee98df6b1a108b06ce08b70474c5ce731897 Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Fri, 13 Jul 2012 15:21:36 +0000 Subject: convert xmax/ymax uses to view geometry. --- app/cwm/menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/cwm/menu.c') diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 5fc2888a9..7452c420b 100644 --- a/app/cwm/menu.c +++ b/app/cwm/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.34 2012/05/16 01:04:36 okan Exp $ + * $OpenBSD: menu.c,v 1.35 2012/07/13 15:21:35 okan Exp $ */ #include @@ -349,8 +349,8 @@ menu_draw(struct screen_ctx *sc, struct menu_ctx *mc, struct menu_q *menuq, ymax = xine->y_org + xine->height; } else { xmin = ymin = 0; - xmax = sc->xmax; - ymax = sc->ymax; + xmax = sc->view.w; + ymax = sc->view.h; } xsave = mc->x; -- cgit v1.2.3