mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
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:
+1
-1
@@ -2945,7 +2945,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
|
|||||||
[cw center];
|
[cw center];
|
||||||
} else if (w->non_modal()) {
|
} else if (w->non_modal()) {
|
||||||
[cw center];
|
[cw center];
|
||||||
} else {
|
} else if (!w->fullscreen_active()) {
|
||||||
static NSPoint delta = NSZeroPoint;
|
static NSPoint delta = NSZeroPoint;
|
||||||
delta = [cw cascadeTopLeftFromPoint:delta];
|
delta = [cw cascadeTopLeftFromPoint:delta];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,8 +256,8 @@ void Fl_Cocoa_Window_Driver::fullscreen_on() {
|
|||||||
pWindow->_set_fullscreen();
|
pWindow->_set_fullscreen();
|
||||||
/* On OS X < 10.6, it is necessary to recreate the window. This is done
|
/* On OS X < 10.6, it is necessary to recreate the window. This is done
|
||||||
with hide+show. */
|
with hide+show. */
|
||||||
hide();
|
pWindow->hide();
|
||||||
show();
|
pWindow->show();
|
||||||
Fl::handle(FL_FULLSCREEN, pWindow);
|
Fl::handle(FL_FULLSCREEN, pWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user