Improvement to scrolling menu

This commit is contained in:
Simon 2011-02-22 00:51:01 +00:00
parent ff1aca9524
commit a84234dcd4

View File

@ -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<PT_NUM; n++)