summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-08-14 14:04:46 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-08-14 14:04:46 +0000
commit810e9c4dcbf4171bde77e460b01ec109a023cdf5 (patch)
tree54f8a7e0690ba9831e149c18b5a30bfcf33eae1a
parentc0a4c66f9dbf84ff8890846f2223e8f0eb3f38cd (diff)
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
-rw-r--r--apps/gui/skin_engine/skin_display.c19
1 files changed, 18 insertions, 1 deletions
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
}
}