1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2011-08-14 14:04:46 +00:00
parent c0a4c66f9d
commit 810e9c4dcb

View file

@ -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
}
}