summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey_core.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-12-07 01:50:52 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-12-18 19:16:26 -0500
commit371c86bf3f4d1708fc40db2aa7fa572eb429d0b4 (patch)
treebe339c62eac616ac6938c2929349b72377c10ee2 /apps/plugins/lib/grey_core.c
parentf668c3624184fedc14d34f87ad7b5f1e43bc87a1 (diff)
downloadrockbox-371c86bf3f4d1708fc40db2aa7fa572eb429d0b4.tar.gz
rockbox-371c86bf3f4d1708fc40db2aa7fa572eb429d0b4.zip
Adapt OSD in plugin lib to be greylib compatible.
Requires addition of viewports and alternate framebuffers to greylib which are essentially similar to the core implementation except that the framebuffer can be any size and relationship to a viewport. Drawing is always fully clipped to the intersecting area. Adapt oscilloscope.c to the API change. FFT will use the new features (later update). Get rid of silly and wrong lcd_bmp_part use in OSD. Remove it from plugin API (must be made incompatible now). Change-Id: Iafa5e2174148fb8ad11db6b9d4add0dcabc5c563
Diffstat (limited to 'apps/plugins/lib/grey_core.c')
-rw-r--r--apps/plugins/lib/grey_core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c
index c2e0747718..047e4cc160 100644
--- a/apps/plugins/lib/grey_core.c
+++ b/apps/plugins/lib/grey_core.c
@@ -677,10 +677,11 @@ bool grey_init(unsigned char *gbuf, long gbuf_size,
677 _grey_info.bheight = bdim; 677 _grey_info.bheight = bdim;
678#endif 678#endif
679 _grey_info.flags = features & 0xff; 679 _grey_info.flags = features & 0xff;
680 _grey_info.fg_brightness = 0; 680
681 _grey_info.bg_brightness = 255; 681 /* default viewport and settings */
682 _grey_info.drawmode = DRMODE_SOLID; 682 grey_set_viewport(NULL);
683 _grey_info.curfont = FONT_SYSFIXED; 683 grey_viewport_set_fullscreen(NULL, SCREEN_MAIN);
684 grey_set_framebuffer(NULL);
684 685
685 /* precalculate the value -> pattern index conversion table, taking 686 /* precalculate the value -> pattern index conversion table, taking
686 linearisation and gamma correction into account */ 687 linearisation and gamma correction into account */