From 1370a6b2686256012b2e6ed2ce13be70bf726d6b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 28 Nov 2005 15:35:18 +0000 Subject: 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 --- test/fullscreen.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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; -- cgit v1.2.3