diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-05 11:43:38 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-05 11:43:38 +0000 |
commit | 6d80565b1b5277820593de80bf036304be93c8ef (patch) | |
tree | 230b2d57d96190430c757cd98534db290c95bd3e /apps/gui/icon.c | |
parent | f06c98fec82e8c800e09603f3022676dbbfdd84b (diff) | |
download | rockbox-6d80565b1b5277820593de80bf036304be93c8ef.tar.gz rockbox-6d80565b1b5277820593de80bf036304be93c8ef.zip |
RTL support in menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22945 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r-- | apps/gui/icon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 53cfd87774..a473c82872 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "settings.h" | 29 | #include "settings.h" |
30 | #include "bmp.h" | 30 | #include "bmp.h" |
31 | #include "filetypes.h" | 31 | #include "filetypes.h" |
32 | #include "language.h" | ||
32 | 33 | ||
33 | #include "bitmaps/default_icons.h" | 34 | #include "bitmaps/default_icons.h" |
34 | #if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) | 35 | #if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) |
@@ -170,6 +171,8 @@ void screen_put_iconxy(struct screen * display, | |||
170 | #endif | 171 | #endif |
171 | draw_func = display->bitmap_part; | 172 | draw_func = display->bitmap_part; |
172 | 173 | ||
174 | if (lang_is_rtl()) | ||
175 | xpos = display->getwidth() - xpos - width; | ||
173 | draw_func(data, 0, height * icon, stride, xpos, ypos, width, height); | 176 | draw_func(data, 0, height * icon, stride, xpos, ypos, width, height); |
174 | } | 177 | } |
175 | 178 | ||