From 6a145ed63aa48944b8dced0d5a6fbcaffda507e7 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 15 Mar 2018 21:17:16 +0000 Subject: Android: window clipping working fl_rectf. This code is not very beautiful, but the resulting class should be easy to use. A range-based loop can be used to find all relevant clipping rectangles for a drawing call. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ide') diff --git a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx index af6358fd2..ca45221b4 100644 --- a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx +++ b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx @@ -55,7 +55,7 @@ void hello_cb(void*) int main(int argc, char **argv) { - win1 = new Fl_Window(10+50, 10, 200, 200, "back"); + win1 = new Fl_Window(20+50, 10, 200, 200, "back"); win1->color(FL_RED); win1->box(FL_DOWN_BOX); Fl_Button *b1 = new Fl_Button(10, 10, 180, 180, "back"); @@ -79,7 +79,7 @@ int main(int argc, char **argv) win->end(); win->show(argc, argv); - win2 = new Fl_Window(390-50, 10, 200, 200, "front"); + win2 = new Fl_Window(380-50, 10, 200, 200, "front"); win2->color(FL_BLUE); win2->box(FL_UP_BOX); Fl_Button *b2 = new Fl_Button(10, 10, 180, 180, "front"); -- cgit v1.2.3