summaryrefslogtreecommitdiff
path: root/test/fullscreen.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-28 15:35:18 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-28 15:35:18 +0000
commit1370a6b2686256012b2e6ed2ce13be70bf726d6b (patch)
treedca0b21e23b3fe7ad34ef03b02183c4cb8878d66 /test/fullscreen.cxx
parent687f0693af97e2caa7e731ef9fb4dc8c4d5e600a (diff)
STR #1082: mad the "fullscreen" demo add and remove the window decoration by using the hide/show combo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/fullscreen.cxx')
-rw-r--r--test/fullscreen.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx
index e0fbe6dca..a37883d6d 100644
--- a/test/fullscreen.cxx
+++ b/test/fullscreen.cxx
@@ -144,6 +144,11 @@ void border_cb(Fl_Widget *o, void *p) {
Fl_Window *w = (Fl_Window *)p;
int d = ((Fl_Button *)o)->value();
w->border(d);
+#if defined(WIN32) || defined(__APPLE__)
+ int wx = w->x(), wy = w->y();
+ w->hide(); w->show();
+ w->position(wx, wy);
+#endif
}
int px,py,pw,ph;