summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2024-03-31 16:52:39 +0100
committerAidan MacDonald <amachronic@protonmail.com>2024-03-31 16:57:19 +0100
commitaf644e02a151bb6d4c229cc1d4846c7ffe952135 (patch)
tree3258be924ee35373c74aad94fbbaba074a8f543f
parent5fd5f56cacdd82ae10fb33496525e1614bcc0dd8 (diff)
downloadrockbox-af644e02a151bb6d4c229cc1d4846c7ffe952135.tar.gz
rockbox-af644e02a151bb6d4c229cc1d4846c7ffe952135.zip
Fix red in 5fd5f56cacdd
Change-Id: Icbc6e234a2fcdd7c8e0cdd0562f49fcbdf52480b
-rw-r--r--firmware/export/scroll_engine.h40
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);
38extern void lcd_scroll_speed(int speed); 38extern void lcd_scroll_speed(int speed);
39extern void lcd_scroll_delay(int ms); 39extern void lcd_scroll_delay(int ms);
40 40
41#ifdef HAVE_REMOTE_LCD
42extern void lcd_remote_scroll_speed(int speed);
43extern void lcd_remote_scroll_delay(int ms);
44#endif
45
41#ifdef BOOTLOADER 46#ifdef BOOTLOADER
42static inline void lcd_scroll_stop(void) 47static inline void lcd_scroll_stop(void)
43{ 48{
@@ -62,22 +67,45 @@ static inline bool lcd_scroll_now(struct scrollinfo *scroll)
62 (void)scroll; 67 (void)scroll;
63 return false; 68 return false;
64} 69}
70
71#ifdef HAVE_REMOTE_LCD
72static inline void lcd_remote_scroll_stop(void)
73{
74}
75
76static inline void lcd_remote_scroll_stop_viewport(const struct viewport *vp)
77{
78 (void)vp;
79}
80
81static inline void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height)
82{
83 (void)vp;
84 (void)x;
85 (void)y;
86 (void)width;
87 (void)height;
88}
89
90static inline bool lcd_remote_scroll_now(struct scrollinfo *scroll)
91{
92 (void)scroll;
93 return false;
94}
95#endif /* HAVE_REMOTE_LCD */
65#else 96#else
66extern void lcd_scroll_stop(void); 97extern void lcd_scroll_stop(void);
67extern void lcd_scroll_stop_viewport(const struct viewport *vp); 98extern void lcd_scroll_stop_viewport(const struct viewport *vp);
68extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); 99extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height);
69extern bool lcd_scroll_now(struct scrollinfo *scroll); 100extern bool lcd_scroll_now(struct scrollinfo *scroll);
70#endif
71#ifdef HAVE_REMOTE_LCD
72extern void lcd_remote_scroll_speed(int speed);
73extern void lcd_remote_scroll_delay(int ms);
74 101
102#ifdef HAVE_REMOTE_LCD
75extern void lcd_remote_scroll_stop(void); 103extern void lcd_remote_scroll_stop(void);
76extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp); 104extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp);
77extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); 105extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height);
78extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); 106extern bool lcd_remote_scroll_now(struct scrollinfo *scroll);
79#endif 107#endif /* HAVE_REMOTE_LCD */
80 108#endif /* BOOTLOADER */
81 109
82 110
83/* internal usage, but in multiple drivers 111/* internal usage, but in multiple drivers