summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-12-20 23:34:28 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-07 11:36:00 +0100
commitbc9a45b05f2b16e3413e53db5a33515c68933738 (patch)
tree99aa1f6defcd0bdd8b842c896b8715f0df481719 /apps/gui/icon.c
parent76476751d7500da813be85829ad740962b8cee79 (diff)
downloadrockbox-bc9a45b05f2b16e3413e53db5a33515c68933738.tar.gz
rockbox-bc9a45b05f2b16e3413e53db5a33515c68933738.zip
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
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c3
1 files changed, 0 insertions, 3 deletions
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,
134 { 134 {
135 iconset = inbuilt_iconset[screen]; 135 iconset = inbuilt_iconset[screen];
136 } 136 }
137 /* add some left padding to the icons if they are on the edge */
138 if (xpos == 0)
139 xpos++;
140 137
141 if (is_rtl) 138 if (is_rtl)
142 xpos = display->getwidth() - xpos - width; 139 xpos = display->getwidth() - xpos - width;