Improvement to scrolling menu
This commit is contained in:
parent
ff1aca9524
commit
a84234dcd4
@ -1653,8 +1653,8 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (fwidth > XRES){
|
if (fwidth > XRES-BARSIZE){
|
||||||
float overflow = fwidth-XRES+BARSIZE, location = ((float)XRES+BARSIZE)/((float)(mx-XRES+BARSIZE));
|
float overflow = fwidth-(XRES-BARSIZE), location = ((float)XRES-BARSIZE)/((float)(mx-(XRES-BARSIZE)));
|
||||||
xoff = (int)(overflow / location);
|
xoff = (int)(overflow / location);
|
||||||
}
|
}
|
||||||
for (n = 0; n<PT_NUM; n++)
|
for (n = 0; n<PT_NUM; n++)
|
||||||
|
Reference in New Issue
Block a user