mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user