diff options
author | Dave Chapman <dave@dchapman.com> | 2008-01-08 01:22:14 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-01-08 01:22:14 +0000 |
commit | 3646c313679c4bd16c9eec98c2e35c7a7bf5c961 (patch) | |
tree | b6508cc00ae60c70c9499090fb87d97f3370c131 /firmware/export | |
parent | 08e6c6bc2a90e953372e503367c406c469994da2 (diff) | |
download | rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.tar.gz rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.zip |
Add the viewport functions to the screens API, including a new getfont() function to return the font used by the current viewport. A change to the screens API makes the plugin API incompatible, so we bump version and sort. Also commit the test_viewports plugin (not built by default). This is some more of FS#8385.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16022 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/lcd-remote.h | 1 | ||||
-rw-r--r-- | firmware/export/lcd.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index 34c40e52c1..cdd48e5fa3 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -149,6 +149,7 @@ extern int lcd_remote_getymargin(void); | |||
149 | extern int lcd_remote_getwidth(void); | 149 | extern int lcd_remote_getwidth(void); |
150 | extern int lcd_remote_getheight(void); | 150 | extern int lcd_remote_getheight(void); |
151 | extern void lcd_remote_setfont(int font); | 151 | extern void lcd_remote_setfont(int font); |
152 | extern int lcd_remote_getfont(void); | ||
152 | extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h); | 153 | extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h); |
153 | 154 | ||
154 | /* low level drawing function pointer arrays */ | 155 | /* low level drawing function pointer arrays */ |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 276dcdfedc..57c9b1d3b8 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -372,6 +372,7 @@ extern void lcd_set_flip(bool yesno); | |||
372 | extern void lcd_set_drawmode(int mode); | 372 | extern void lcd_set_drawmode(int mode); |
373 | extern int lcd_get_drawmode(void); | 373 | extern int lcd_get_drawmode(void); |
374 | extern void lcd_setfont(int font); | 374 | extern void lcd_setfont(int font); |
375 | extern int lcd_getfont(void); | ||
375 | 376 | ||
376 | extern void lcd_puts_style_offset(int x, int y, const unsigned char *str, | 377 | extern void lcd_puts_style_offset(int x, int y, const unsigned char *str, |
377 | int style, int offset); | 378 | int style, int offset); |