convert xmax/ymax uses to view geometry.

This commit is contained in:
okan
2012-07-13 15:21:35 +00:00
parent cc08aef0df
commit 186a78ff1e
8 changed files with 24 additions and 29 deletions

4
menu.c
View File

@@ -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;