diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-03 13:35:12 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-03 13:35:12 -0400 |
commit | cdead40b9bb4b40469d3aa3c31ec30904113114f (patch) | |
tree | f014a1eb590a9d09b90775b55b3c2a5399de47c0 /src | |
parent | e05b0ff3ebd8086809714527a27b412345ff4d72 (diff) | |
download | plan9port-cdead40b9bb4b40469d3aa3c31ec30904113114f.tar.gz plan9port-cdead40b9bb4b40469d3aa3c31ec30904113114f.tar.bz2 plan9port-cdead40b9bb4b40469d3aa3c31ec30904113114f.zip |
devdraw: OS X: go full screen on largest device (Eric Nichols)
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(); } |