Can't go to window mode from full screen [Mac] (>=SDL 2.0 |
^DJ_Link^
|
Forgot to mention. I'm using Mac OS X Yosemite (10.10.3)
|
|||||||||||
|
^DJ_Link^
|
did some poorly copy paste from the code.
this is the correct code I have
|
|||||||||||||
|
Can't go to window mode from full screen [Mac] (>=SDL 2.0 |
Sam Lantinga
|
I just tried this with testsprite2, by using Ctrl-Return to toggle fullscreen mode. I noticed that the window decorations went away when I came back from fullscreen mode, but it toggled just fine here on 10.10.3
On Sun, Jun 28, 2015 at 7:47 AM, ^DJ_Link^ wrote:
|
|||||||||||||
|
Can't go to window mode from full screen [Mac] (>=SDL 2.0 |
eric.w
|
On Mon, Jun 29, 2015 at 11:18 PM, Sam Lantinga wrote:
regarding: window decorations disappearing, I get the same thing, Sam. (also on 10.10.3) If I launch testgl2 with "--resize", then the close/minimuze/fullscreen buttons reappear as soon as I resize the window. I think this is related: http://stackoverflow.com/questions/27560296/titleclose-button-not-show and indeed, this adding hacky workaround seems to fix the problem for me: NSRect r = [nswindow frame]; [nswindow setFrame:NSMakeRect(r.origin.x, r.origin.y, r.size.width + 1, r.size.height) display:NO]; [nswindow setFrame:r display:YES]; after this line in Cocoa_SetWindowFullscreen: [nswindow performSelector: @selector(setStyleMask:) withObject: (id)(uintptr_t)GetWindowStyle(window)]; DJ_Link, I also couldn't reproduce the bug. Could you make a small standalone test app that shows the issue? I'm wondering if some specifics like the initial window size matter. Also, what screen resolution are you seeing this on, and is it a retina screen? Eric |
|||||||||||||
|
Re: Can't go to window mode from full screen [Mac] (>=SDL |
^DJ_Link^
|
Ah, weirdly, and I decided to build SDL from source (last commit), and the problem goes away. For sanity check I compiled the revision 8627 (release-2.0.3) and with that one I have the issue. But it wasn't present in 2.0.1. So between that commit and the latest one it was fixed I think. I can switch between full screen and window using both SDL_WINDOW_FULLSCREEN and SDL_WINDOW_FULLSCREEN_DESKTOP now. Thank you for the help, I should have tried to build it from source in the first place. btw, I noticed that on the last commit the Mac project only has Standard Arch (64) instead of Universal. Will that be a thing from now on? I changed the flag for my own build. I know it's weird, but but I have older libs that I can't get to work on 64 builds. |
|||||||||||||
|
Can't go to window mode from full screen [Mac] (>=SDL 2.0 |
Sam Lantinga
|
Fixed, thanks!
On Tue, Jun 30, 2015 at 12:54 AM, Eric Wasylishen wrote:
|
|||||||||||||||
|