diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-07-13 15:21:36 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-07-13 15:21:36 +0000 |
commit | 276cee98df6b1a108b06ce08b70474c5ce731897 (patch) | |
tree | a48335568c740c002fdf50dcf7bf14dabee53f6d /app/cwm/menu.c | |
parent | faeb5961fdec501bae4e3401d9890e58b3fbbf25 (diff) |
convert xmax/ymax uses to view geometry.
Diffstat (limited to 'app/cwm/menu.c')
-rw-r--r-- | app/cwm/menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <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; |