diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2024-03-31 16:52:39 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2024-03-31 16:57:19 +0100 |
commit | af644e02a151bb6d4c229cc1d4846c7ffe952135 (patch) | |
tree | 3258be924ee35373c74aad94fbbaba074a8f543f | |
parent | 5fd5f56cacdd82ae10fb33496525e1614bcc0dd8 (diff) | |
download | rockbox-af644e02a1.tar.gz rockbox-af644e02a1.zip |
Fix red in 5fd5f56cacdd
Change-Id: Icbc6e234a2fcdd7c8e0cdd0562f49fcbdf52480b
-rw-r--r-- | firmware/export/scroll_engine.h | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 2a1a510dbd..ba7cc3c4d5 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -38,6 +38,11 @@ extern void lcd_bidir_scroll(int threshold); extern void lcd_scroll_speed(int speed); extern void lcd_scroll_delay(int ms); +#ifdef HAVE_REMOTE_LCD +extern void lcd_remote_scroll_speed(int speed); +extern void lcd_remote_scroll_delay(int ms); +#endif + #ifdef BOOTLOADER static inline void lcd_scroll_stop(void) { @@ -62,22 +67,45 @@ static inline bool lcd_scroll_now(struct scrollinfo *scroll) (void)scroll; return false; } + +#ifdef HAVE_REMOTE_LCD +static inline void lcd_remote_scroll_stop(void) +{ +} + +static inline void lcd_remote_scroll_stop_viewport(const struct viewport *vp) +{ + (void)vp; +} + +static inline void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height) +{ + (void)vp; + (void)x; + (void)y; + (void)width; + (void)height; +} + +static inline bool lcd_remote_scroll_now(struct scrollinfo *scroll) +{ + (void)scroll; + return false; +} +#endif /* HAVE_REMOTE_LCD */ #else extern void lcd_scroll_stop(void); extern void lcd_scroll_stop_viewport(const struct viewport *vp); extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); extern bool lcd_scroll_now(struct scrollinfo *scroll); -#endif -#ifdef HAVE_REMOTE_LCD -extern void lcd_remote_scroll_speed(int speed); -extern void lcd_remote_scroll_delay(int ms); +#ifdef HAVE_REMOTE_LCD extern void lcd_remote_scroll_stop(void); extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp); extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); -#endif - +#endif /* HAVE_REMOTE_LCD */ +#endif /* BOOTLOADER */ /* internal usage, but in multiple drivers |