summaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-15 21:17:16 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-15 21:17:16 +0000
commit6a145ed63aa48944b8dced0d5a6fbcaffda507e7 (patch)
tree1f0fd0c2b40f7441d4f8f38f53e7cf8abf5524f5 /ide
parent726cb77717e00de9cd6d9accad0a69f4ae7a6859 (diff)
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
Diffstat (limited to 'ide')
-rw-r--r--ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx4
1 files changed, 2 insertions, 2 deletions
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");