From c47b65408ee5fade49d2c9e083333233f3bbfc5f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 15 Feb 2003 01:03:03 +0000 Subject: The LANG_RENAME string could be f***ed up in onplay_screen. Patch by SeeSchloss. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3272 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/tree.c b/apps/tree.c index bd2f8c2a2b..9df16a6344 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -688,7 +688,9 @@ static int onplay_screen(char* dir, char* file) LCD_WIDTH/2 + 8, LCD_HEIGHT/2 - 4, 7, 8, true); } - lcd_putsxy(0, LCD_HEIGHT/2 - h/2, str(LANG_RENAME)); + ptr = str(LANG_RENAME); + lcd_getstringsize(ptr,&w,&h); + lcd_putsxy(0, LCD_HEIGHT/2 - h/2, ptr); lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8, true); } -- cgit v1.2.3