summaryrefslogtreecommitdiff
path: root/src/drivers/Android/Fl_Android_Screen_Driver.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-07 16:29:31 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-07 16:29:31 +0000
commitdcc10a6a0a4cf0ec6e2a2a95f8b110230d65f1aa (patch)
treecf3eb30b0a11f54c0ed89013d07ac23619201a85 /src/drivers/Android/Fl_Android_Screen_Driver.cxx
parent2df5cb850a8aa3388cd5bc1ef0c8d3bc6f214d4f (diff)
Android: improvements to Fl:flush() implementation. Initial draw, no wasted draw cycles.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Screen_Driver.cxx')
-rw-r--r--src/drivers/Android/Fl_Android_Screen_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Android/Fl_Android_Screen_Driver.cxx b/src/drivers/Android/Fl_Android_Screen_Driver.cxx
index 3b6fdf677..0a187ca9c 100644
--- a/src/drivers/Android/Fl_Android_Screen_Driver.cxx
+++ b/src/drivers/Android/Fl_Android_Screen_Driver.cxx
@@ -378,10 +378,10 @@ void Fl_WinAPI_Screen_Driver::beep(int type)
void Fl_Android_Screen_Driver::flush()
{
Fl_Screen_Driver::flush();
- // FIXME: do this only if anything actually changed on screen!
+ // FIXME: do this only if anything actually changed on screen (need to optimize)!
if (pScreenContentChanged) {
- Fl_Android_Application::copy_screen();
- pScreenContentChanged = false;
+ if (Fl_Android_Application::copy_screen())
+ pScreenContentChanged = false;
}
}