mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 16:46:52 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user