diff options
Diffstat (limited to 'src/drivers/Android/Fl_Android_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Screen_Driver.cxx | 6 |
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; } } |
