summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-remote-2bit-vi.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-01-08 01:22:14 +0000
committerDave Chapman <dave@dchapman.com>2008-01-08 01:22:14 +0000
commit3646c313679c4bd16c9eec98c2e35c7a7bf5c961 (patch)
treeb6508cc00ae60c70c9499090fb87d97f3370c131 /firmware/drivers/lcd-remote-2bit-vi.c
parent08e6c6bc2a90e953372e503367c406c469994da2 (diff)
downloadrockbox-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/drivers/lcd-remote-2bit-vi.c')
-rw-r--r--firmware/drivers/lcd-remote-2bit-vi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-remote-2bit-vi.c b/firmware/drivers/lcd-remote-2bit-vi.c
index 9ab98c69aa..9f70e95195 100644
--- a/firmware/drivers/lcd-remote-2bit-vi.c
+++ b/firmware/drivers/lcd-remote-2bit-vi.c
@@ -174,6 +174,11 @@ void lcd_remote_setfont(int newfont)
174 current_vp->font = newfont; 174 current_vp->font = newfont;
175} 175}
176 176
177int lcd_remote_getfont(void)
178{
179 return current_vp->font;
180}
181
177int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h) 182int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h)
178{ 183{
179 return font_getstringsize(str, w, h, current_vp->font); 184 return font_getstringsize(str, w, h, current_vp->font);