From bc9a45b05f2b16e3413e53db5a33515c68933738 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 20 Dec 2013 23:34:28 +0100 Subject: icons: Remove automatic left padding if x == 0. Since x is viewport-relative the icon isn't necessarily placed at the physical display boundaries so that the padding isn't always useful. In fact it does more harm if one wants to place an icon exactly at 0 of a (non-default) viewport. Calling code looks still mostly fine. I've only modified list drawer to include the padding in the call-site. Change-Id: I6b16b3d4377c3553234667b79837adde10e0edf2 --- apps/gui/icon.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'apps/gui/icon.c') diff --git a/apps/gui/icon.c b/apps/gui/icon.c index f37cee969c..e943338af5 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -134,9 +134,6 @@ void screen_put_iconxy(struct screen * display, { iconset = inbuilt_iconset[screen]; } - /* add some left padding to the icons if they are on the edge */ - if (xpos == 0) - xpos++; if (is_rtl) xpos = display->getwidth() - xpos - width; -- cgit v1.2.3