From 6630958533d02d66dca8cc79897fda2cb744c076 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 20 Dec 2013 23:34:28 +0100 Subject: lcd-common/scroll_engine: Introduce lcd_putsxy_scroll_func(). This function supports installing a custom scroll callback. This will be called when the scrollengine redraws the line. It allows to draw extended styles (or anything your can possible imagine) along with the text. It is also strictly pixel-based, the first pixel-based function that supports scrolling. Change-Id: I57f81ac7b3d08b877aea4cb8afa882f175ebcdfc --- apps/screen_access.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/screen_access.h') diff --git a/apps/screen_access.h b/apps/screen_access.h index 90b63ea338..210ad2e990 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -24,6 +24,7 @@ #include "lcd.h" #include "buttonbar.h" +#include "scroll_engine.h" #include "backdrop.h" #if defined(HAVE_REMOTE_LCD) && !defined (ROCKBOX_HAS_LOGF) @@ -143,6 +144,9 @@ struct screen void (*puts_scroll)(int x, int y, const unsigned char *string); void (*puts_scroll_offset)(int x, int y, const unsigned char *string, int x_offset); + void (*putsxy_scroll_func)(int x, int y, const unsigned char *string, + void (*scroll_func)(struct scrollinfo *), + void *data, int x_offset); void (*scroll_speed)(int speed); void (*scroll_delay)(int ms); void (*clear_display)(void); -- cgit