about summary refs log tree commit diff
path: root/menu.c
diff options
context:
space:
mode:
authorokan <okan>2012-07-13 15:21:35 +0000
committerokan <okan>2012-07-13 15:21:35 +0000
commit186a78ff1e8f19155b337b68586cebc7495fcdf9 (patch)
tree200cd7019093779454b4d32799e45870567ec8b7 /menu.c
parentcc08aef0df6236f794fb1d5dfcef265dba9da228 (diff)
downloadcwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.tar.gz
cwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.tar.xz
cwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.zip
convert xmax/ymax uses to view geometry.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 17c665a..58ed618 100644
--- a/menu.c
+++ b/menu.c
@@ -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;