diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/osx-screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/devdraw/osx-screen.c b/src/cmd/devdraw/osx-screen.c index 1a9342fa..5a7e9ea9 100644 --- a/src/cmd/devdraw/osx-screen.c +++ b/src/cmd/devdraw/osx-screen.c @@ -529,6 +529,7 @@ fullscreen(void) { static Ptr restore; static WindowRef oldwindow; + GDHandle device; if(osx.isfullscreen){ EndFullScreen(restore, 0); @@ -538,7 +539,8 @@ fullscreen(void) }else{ HideWindow(osx.window); oldwindow = osx.window; - BeginFullScreen(&restore, 0, 0, 0, &osx.window, 0, 0); + GetWindowGreatestAreaDevice(osx.window, kWindowTitleBarRgn, &device, nil); + BeginFullScreen(&restore, device, 0, 0, &osx.window, 0, 0); osx.isfullscreen = 1; osx.fullscreentime = msec(); } |