summaryrefslogtreecommitdiff
path: root/tools/checkwps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-07-06 14:32:34 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-07-06 14:32:34 +0000
commitb02ad2bb26364f3b20a9727b994d3a4d2217852b (patch)
treea75d6819a1fb0694207650d78305fb5a4d238862 /tools/checkwps
parentd035f255c95d69c342d3ecbcf4cc88c1f1c01af2 (diff)
downloadrockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.tar.gz
rockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.zip
fix checkwps again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17958 a1c6a512-1295-4272-9138-f99709370657
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,