From b02ad2bb26364f3b20a9727b994d3a4d2217852b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 6 Jul 2008 14:32:34 +0000 Subject: fix checkwps again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17958 a1c6a512-1295-4272-9138-f99709370657 --- tools/checkwps/checkwps.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tools/checkwps/checkwps.c') 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 = { #endif }; - +int getwidth(void) { return LCD_WIDTH; } +int getheight(void) { return LCD_HEIGHT; } +#ifdef HAVE_REMOTE_LCD +int remote_getwidth(void) { return LCD_REMOTE_WIDTH; } +int remote_getheight(void) { return LCD_REMOTE_HEIGHT; } +#endif + struct screen screens[NB_SCREENS] = { { @@ -142,6 +148,8 @@ struct screen screens[NB_SCREENS] = #else .is_color=false, #endif + .getwidth = getwidth, + .getheight = getheight, #if LCD_DEPTH > 1 .get_foreground=dummy_func2, .get_background=dummy_func2, @@ -154,6 +162,8 @@ struct screen screens[NB_SCREENS] = .lcdheight=LCD_REMOTE_HEIGHT, .depth=LCD_REMOTE_DEPTH, .is_color=false,/* No color remotes yet */ + .getwidth = remote_getwidth, + .getheight = remote_getheight, #if LCD_REMOTE_DEPTH > 1 .get_foreground=dummy_func2, .get_background=dummy_func2, -- cgit v1.2.3