diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-06 14:32:34 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-06 14:32:34 +0000 |
| commit | b02ad2bb26364f3b20a9727b994d3a4d2217852b (patch) | |
| tree | a75d6819a1fb0694207650d78305fb5a4d238862 /tools/checkwps | |
| parent | d035f255c95d69c342d3ecbcf4cc88c1f1c01af2 (diff) | |
| download | rockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.zip rockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.tar.gz rockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.tar.bz2 rockbox-b02ad2bb26364f3b20a9727b994d3a4d2217852b.tar.xz | |
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.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 2a6327d..9eaee6e 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, |