From 6d80565b1b5277820593de80bf036304be93c8ef Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Mon, 5 Oct 2009 11:43:38 +0000 Subject: RTL support in menus git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22945 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/gui/icon.c') 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 @@ #include "settings.h" #include "bmp.h" #include "filetypes.h" +#include "language.h" #include "bitmaps/default_icons.h" #if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) @@ -170,6 +171,8 @@ void screen_put_iconxy(struct screen * display, #endif draw_func = display->bitmap_part; + if (lang_is_rtl()) + xpos = display->getwidth() - xpos - width; draw_func(data, 0, height * icon, stride, xpos, ypos, width, height); } -- cgit v1.2.3