summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey_core.c
diff options
context:
space:
mode:
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 c2e0747..047e4cc 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,
_grey_info.bheight = bdim;
#endif
_grey_info.flags = features & 0xff;
- _grey_info.fg_brightness = 0;
- _grey_info.bg_brightness = 255;
- _grey_info.drawmode = DRMODE_SOLID;
- _grey_info.curfont = FONT_SYSFIXED;
+
+ /* default viewport and settings */
+ grey_set_viewport(NULL);
+ grey_viewport_set_fullscreen(NULL, SCREEN_MAIN);
+ grey_set_framebuffer(NULL);
/* precalculate the value -> pattern index conversion table, taking
linearisation and gamma correction into account */