forked from len0rd/rockbox
The second part of this expression always becomes true before the first part, so the first part is unnecessary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17907 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
98bdff1e01
commit
4dab6235cf
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ static void quickscreen_fix_viewports(struct gui_quickscreen *qs,
|
|||
vp_icons[screen].height =
|
||||
vps[screen][QUICKSCREEN_BOTTOM].y - vp_icons[screen].y;
|
||||
|
||||
if ((left_width + right_width > parent->width - CENTER_ICONAREA_WIDTH) ||
|
||||
(MAX(left_width, right_width)*2 > parent->width - CENTER_ICONAREA_WIDTH))
|
||||
if (MAX(left_width, right_width)*2 > parent->width - CENTER_ICONAREA_WIDTH)
|
||||
{
|
||||
/* scrolling needed */
|
||||
int center = (parent->width - CENTER_ICONAREA_WIDTH)/2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue