1
0
Fork 0
forked from len0rd/rockbox

lcd-common/scroll_engine: Remove unused functions lcd_puts_style_xyoffset() and lcd_puts_scroll_style_xyoffset().

With this functions removed there is no exported function in firmware left
that draws line decorations. Also no function supports specifying an y-offset
anymore (was used for pixel accurate positioning of otherwise strictly line-based
API calls).

Both should be handled in apps/ now.

Change-Id: Iba4b28ccc6e686c7db63e34b51ad4badae983fce
This commit is contained in:
Thomas Martitz 2013-04-14 18:15:09 +02:00
parent 775ebe4ff6
commit 9a4686b563
5 changed files with 2 additions and 28 deletions

View file

@ -445,7 +445,7 @@ static void LCDFN(putsxyofs_style)(int xpos, int ypos,
/*** Line oriented text output ***/
void LCDFN(puts_style_xyoffset)(int x, int y, const unsigned char *str,
static void LCDFN(putsofs_style)(int x, int y, const unsigned char *str,
int style, int x_offset, int y_offset)
{
int xpos, ypos, h;
@ -469,7 +469,7 @@ void LCDFN(puts_style_xyoffset)(int x, int y, const unsigned char *str,
void LCDFN(puts)(int x, int y, const unsigned char *str)
{
LCDFN(puts_style_xyoffset)(x, y, str, STYLE_DEFAULT, 0, 0);
LCDFN(putsofs_style)(x, y, str, STYLE_DEFAULT, 0, 0);
}
/* Formatting version of LCDFN(puts) */
@ -582,13 +582,6 @@ static void LCDFN(puts_scroll_worker)(int x, int y, const unsigned char *string,
}
}
void LCDFN(puts_scroll_style_xyoffset)(int x, int y, const unsigned char *string,
int style, int x_offset, int y_offset)
{
LCDFN(puts_scroll_worker)(x, y, string, style, x_offset, y_offset,
true, LCDFN(scroll_fn), NULL);
}
void LCDFN(putsxy_scroll_func)(int x, int y, const unsigned char *string,
void (*scroll_func)(struct scrollinfo *),
void *data, int x_offset)