Simplify weirdly matching division/substraction code
This commit is contained in:
@@ -76,10 +76,7 @@ int Intl_GetListMenuWidth(const struct ListMenuTemplate *listMenu)
|
||||
}
|
||||
|
||||
finalWidth = maxWidth + listMenu->item_X + 9;
|
||||
if (finalWidth < 0)
|
||||
finalWidth += 7;
|
||||
|
||||
finalWidth >>= 3;
|
||||
finalWidth /= 8;
|
||||
if (finalWidth > 28)
|
||||
finalWidth = 28;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user