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
This commit is contained in:
Matthias Melcher
2005-11-28 15:35:18 +00:00
parent 687f0693af
commit 1370a6b268
+5
View File
@@ -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;