From a84234dcd4e5a3dfb4a62d73ff07df1e01bed086 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 22 Feb 2011 00:51:01 +0000 Subject: [PATCH] Improvement to scrolling menu --- src/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index e43bd9ae9..a762b39d7 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1653,8 +1653,8 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx, } else { - if (fwidth > XRES){ - float overflow = fwidth-XRES+BARSIZE, location = ((float)XRES+BARSIZE)/((float)(mx-XRES+BARSIZE)); + if (fwidth > XRES-BARSIZE){ + float overflow = fwidth-(XRES-BARSIZE), location = ((float)XRES-BARSIZE)/((float)(mx-(XRES-BARSIZE))); xoff = (int)(overflow / location); } for (n = 0; n