summaryrefslogtreecommitdiff
path: root/Android/HelloAndroid
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-05 22:57:33 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-05 22:57:33 +0000
commitb47db80af359e5ab3b2188573cbf42ee439a2be7 (patch)
treed765c679f19eec438e8cd03e1ff10289ba69357b /Android/HelloAndroid
parent8c51282770f86800ea609fda8bddb0d54a84ec62 (diff)
Android: drawing behaves nice enough. Fl::flush seems to bring the expected results, although optimization is required at some point.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'Android/HelloAndroid')
-rw-r--r--Android/HelloAndroid/app/src/main/cpp/HelloAndroid.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Android/HelloAndroid/app/src/main/cpp/HelloAndroid.cxx b/Android/HelloAndroid/app/src/main/cpp/HelloAndroid.cxx
index 6209a1217..bba38a5b7 100644
--- a/Android/HelloAndroid/app/src/main/cpp/HelloAndroid.cxx
+++ b/Android/HelloAndroid/app/src/main/cpp/HelloAndroid.cxx
@@ -146,6 +146,8 @@ int main(int argc, char **argv)
btn = new Fl_Button(190, 200, 280, 35, "Hello, Android!");
btn->color(FL_LIGHT2);
win->show();
+ Fl::damage(FL_DAMAGE_ALL);
+ win->redraw();
// loop waiting for stuff to do.
@@ -174,11 +176,7 @@ int main(int argc, char **argv)
return 0;
}
}
- //Fl::flush();
-
- if (engine.animating) {
- engine_draw_frame();
- }
+ Fl::flush();
}
return 0;
}