STR #1082: Made sur that "fullscreen" on Mac does not cover the top menu bar. If you still must do that, you can use the screen interface to get the true screen size of the main screen and resize the window accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-11-28 15:41:39 +00:00
parent 1370a6b268
commit 8cd25c4ecb

View File

@ -68,8 +68,13 @@ void Fl_Window::fullscreen() {
//determine its thickness
border(0);
#endif
#ifdef __APPLE__
if (x()==Fl::x()) x(x()+1); // force it to call ResizeWindow()
resize(Fl::x(),Fl::y(),Fl::w(),Fl::h());
#else
if (!x()) x(1); // force it to call XResizeWindow()
resize(0,0,Fl::w(),Fl::h());
#endif
}
void Fl_Window::fullscreen_off(int X,int Y,int W,int H) {