summaryrefslogtreecommitdiff
path: root/tools/checkwps
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkwps')
-rw-r--r--tools/checkwps/checkwps.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c
index 2a6327df7c..9eaee6e121 100644
--- a/tools/checkwps/checkwps.c
+++ b/tools/checkwps/checkwps.c
@@ -129,7 +129,13 @@ struct user_settings global_settings = {
129#endif 129#endif
130}; 130};
131 131
132 132int getwidth(void) { return LCD_WIDTH; }
133int getheight(void) { return LCD_HEIGHT; }
134#ifdef HAVE_REMOTE_LCD
135int remote_getwidth(void) { return LCD_REMOTE_WIDTH; }
136int remote_getheight(void) { return LCD_REMOTE_HEIGHT; }
137#endif
138
133struct screen screens[NB_SCREENS] = 139struct screen screens[NB_SCREENS] =
134{ 140{
135 { 141 {
@@ -142,6 +148,8 @@ struct screen screens[NB_SCREENS] =
142#else 148#else
143 .is_color=false, 149 .is_color=false,
144#endif 150#endif
151 .getwidth = getwidth,
152 .getheight = getheight,
145#if LCD_DEPTH > 1 153#if LCD_DEPTH > 1
146 .get_foreground=dummy_func2, 154 .get_foreground=dummy_func2,
147 .get_background=dummy_func2, 155 .get_background=dummy_func2,
@@ -154,6 +162,8 @@ struct screen screens[NB_SCREENS] =
154 .lcdheight=LCD_REMOTE_HEIGHT, 162 .lcdheight=LCD_REMOTE_HEIGHT,
155 .depth=LCD_REMOTE_DEPTH, 163 .depth=LCD_REMOTE_DEPTH,
156 .is_color=false,/* No color remotes yet */ 164 .is_color=false,/* No color remotes yet */
165 .getwidth = remote_getwidth,
166 .getheight = remote_getheight,
157#if LCD_REMOTE_DEPTH > 1 167#if LCD_REMOTE_DEPTH > 1
158 .get_foreground=dummy_func2, 168 .get_foreground=dummy_func2,
159 .get_background=dummy_func2, 169 .get_background=dummy_func2,