27 September 2012, 11:45 | #1 |
Registered User
Join Date: Jan 2009
Location: Göteborg / Sweden
Posts: 25
|
[FS-UAE] OS X Lion Full-Screen Mode
First, thanks a lot for doing this! Have been waiting sooo long for a proper amiga emu which runs on osx
Bug report (osx 10.7) When resizing the window the gui breaks (https://skitch.com/m4rkus/eispd/amiga-500-fs-uae) edit: sorry, didn't realize i was running the old stable version would be cleaner if it wasn't possible to scale the content non-uniform though! also i think 4:3 should be the default aspect or atleast that we don't get black borders when using 4:3 windowed Feature request Would be awesome if Lion fullscreen-mode would be supported in the osx-build, it's very convenient when using fs-uae for developing to have a full-screened amiga on a separate screenspace Cheers, yonx / up rough Last edited by yoki; 27 September 2012 at 11:57. |
27 September 2012, 14:57 | #2 |
Registered User
Join Date: May 2012
Location: moon
Posts: 208
|
Lion fullscreen mode, I like it too !!
|
27 September 2012, 15:33 | #3 |
Banned
Join Date: Jul 2010
Location: Earth
Age: 46
Posts: 500
|
+1
|
27 September 2012, 23:11 | #4 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Possible "Lion fullscreen mode" support: http://fengestad.no/fs-uae/files/1.3.28u1/.
NSWindow::setCollectionBehavior is used with the NSWindowCollectionBehaviorFullScreenPrimary flag, and as I understand the documentation, this should add a fullscreen button in the upper right of the titlebar. Note: start FS-UAE in windowed mode, not fullscreen mode! |
27 September 2012, 23:28 | #5 |
Registered User
Join Date: Dec 2008
Location: Paris / France
Age: 49
Posts: 137
|
I launched in windowed mode and yes, the fullscreen button appears and works. I get a new fullscreen but the dimensions are not adapted, I mean the screen isn't stretched.
Last edited by waal; 27 September 2012 at 23:44. |
27 September 2012, 23:59 | #6 | |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Quote:
For reference, this was the patch against SDL: Code:
--- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -1059,6 +1059,12 @@ static SDL_Surface* QZ_SetVideoWindowed (_THIS, SDL_Surface *current, int width, [ window_view setFrameSize:contentRect.size ]; } + NSWindowCollectionBehavior behavior = [ qz_window collectionBehavior ]; + behavior |= (1 << 7); + [ qz_window setCollectionBehavior:behavior]; + /* For OpenGL, we bind the context to a subview */ if ( flags & SDL_OPENGL ) { |
|
28 September 2012, 14:57 | #7 |
Registered User
Join Date: Dec 2008
Location: Paris / France
Age: 49
Posts: 137
|
The emu crashes only if you set window_resizable = 1. Set it to 0 and you'll get the new screenspace without any problem like in the pic I've posted above. I think it's already a good option.
|
06 October 2012, 14:34 | #8 | |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Quote:
Code:
SDL_WINDOW_FULLSCREEN_LION |
|
01 December 2013, 12:05 | #9 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
FS-UAE 2.3.10dev was updated to using SDL2. This changed how fullscreen works by default, and hopefully it works better - it seems it fixes problems for some(all?) users with retina displays.
But the interesting bit for this thread: I've peeked at the repository for the development version of SDL and found this commit. http://hg.libsdl.org/SDL/rev/8c0afe77a1b2 ("Added a hint SDL_HINT_VIDEO_FULLSCREEN_SPACES to specify that windows go fullscreen into their own spaces on Mac OS X."). It looks like this commit will indeed add support for the fullscreen button in the window's title bar Since the commit is already in the repo, I guess it will be available in SDL 2.0.2! (FS-UAE on OS X uses SDL 2.0.1). |
03 March 2014, 09:57 | #10 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Ryan Gordon: "Just pushed a change to SDL to make it cooperate with Spaces on Mac OS X."
https://plus.google.com/103391075724...ts/TERztq6nQ94 So it seems that the new fullscreen modes in OS X are now fully supported in SDL 2 |
24 March 2014, 22:30 | #11 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
SDL 2.0.2 was recently released, and I've tested building FS-UAE against that. "OS X Lion Full-Screen Mode" works nicely now, and will probably be available in a development version shortly
|
25 March 2014, 09:46 | #12 |
Registered User
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
|
can't wait for it
|
26 March 2014, 20:37 | #13 |
Registered User
Join Date: May 2012
Location: moon
Posts: 208
|
Me too. It will certainly be nice.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Full screen mode WinUAE 0.8.22 | Erik | support.WinUAE | 4 | 19 March 2011 19:35 |
Can't find Close gadget in full-screen mode | garyg | support.WinUAE | 1 | 11 August 2010 20:19 |
Can't get games on full screen mode | Gonzouk | support.WinUAE | 15 | 30 April 2007 23:14 |
Choppy sound when in full screen mode | UncleSpam | support.WinUAE | 7 | 16 January 2007 02:03 |
|
|