From e1bf7b920254deea542c9c09a344498982ba9424 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 19 Jun 2018 16:29:20 +0000 Subject: Android: Clearing the desktop when a window is hidden. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Android/Fl_Android_Application.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/Android/Fl_Android_Application.cxx') diff --git a/src/drivers/Android/Fl_Android_Application.cxx b/src/drivers/Android/Fl_Android_Application.cxx index fca8d9a46..3a076bed3 100644 --- a/src/drivers/Android/Fl_Android_Application.cxx +++ b/src/drivers/Android/Fl_Android_Application.cxx @@ -389,7 +389,8 @@ void *Fl_Android_Application::thread_entry(void* param) * FIXME: everything is currently hardcoded to an 600x800 resolution * TODO: react to screen changes */ -void Fl_Android_Application::allocate_screen() { +void Fl_Android_Application::allocate_screen() +{ pApplicationWindowBuffer.bits = calloc(600*800, 2); // one uint16_t per pixel pApplicationWindowBuffer.width = 600; pApplicationWindowBuffer.height = 800; -- cgit v1.2.3