1
0
Fork 0
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:
Jens Arnold 2008-07-01 17:45:16 +00:00
parent 98bdff1e01
commit 4dab6235cf

View file

@ -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;