From 810e9c4dcbf4171bde77e460b01ec109a023cdf5 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 14 Aug 2011 14:04:46 +0000 Subject: fix charcell again.... wouldnt it be nice to remove charcell support all together? :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30305 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_display.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 02e9d39711..d60690bdbd 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -581,7 +581,7 @@ void write_line(struct screen *display, struct align_pos *format_align, /* Nasty hack: we output an empty scrolling string, which will reset the scroller for that line */ display->puts_scroll(0, line, (unsigned char *)""); - +#ifdef HAVE_LCD_BITMAP /* print aligned strings */ if (left_width != 0) { @@ -599,6 +599,23 @@ void write_line(struct screen *display, struct align_pos *format_align, display->puts_style_xyoffset(right_xpos/space_width, line, (unsigned char *)format_align->right, style, 0, 0); } +#else + if (left_width != 0) + { + display->putsxy(left_xpos, line, + (unsigned char *)format_align->left); + } + if (center_width != 0) + { + display->putsxy(center_xpos, line, + (unsigned char *)format_align->center); + } + if (right_width != 0) + { + display->putsxy(right_xpos, line, + (unsigned char *)format_align->right); + } +#endif } } -- cgit v1.2.3