MacOS: fix creation of fullscreen GL window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
821be0b0eb
commit
ee3fbb849e
@ -2945,7 +2945,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
|
||||
[cw center];
|
||||
} else if (w->non_modal()) {
|
||||
[cw center];
|
||||
} else {
|
||||
} else if (!w->fullscreen_active()) {
|
||||
static NSPoint delta = NSZeroPoint;
|
||||
delta = [cw cascadeTopLeftFromPoint:delta];
|
||||
}
|
||||
|
@ -256,8 +256,8 @@ void Fl_Cocoa_Window_Driver::fullscreen_on() {
|
||||
pWindow->_set_fullscreen();
|
||||
/* On OS X < 10.6, it is necessary to recreate the window. This is done
|
||||
with hide+show. */
|
||||
hide();
|
||||
show();
|
||||
pWindow->hide();
|
||||
pWindow->show();
|
||||
Fl::handle(FL_FULLSCREEN, pWindow);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user