diff options
author | okan | 2012-07-13 15:21:35 +0000 |
---|---|---|
committer | okan | 2012-07-13 15:21:35 +0000 |
commit | a4c958a3f89733566a15f47d5ddc0167fe5e85d4 (patch) | |
tree | c389a5df0d1eac207d889d53e01760717fb24f45 /menu.c | |
parent | 5e6e2b31dc906e221316757e7b05b680209148b1 (diff) | |
download | cwm-a4c958a3f89733566a15f47d5ddc0167fe5e85d4.tar.gz |
convert xmax/ymax uses to view geometry.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <sys/param.h> @@ -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; |