Retina display support in SDL 2.0.1 not working? |
Retina display support in SDL 2.0.1 not working? |
Stefanos A.
Guest
|
Yes, it is working fine here using 2.0.1 on Mac OS X 10.9.
2013/10/25 kloffy
|
|||||||||||||
|
kloffy
|
Interesting, so you are getting a HighDPI window frame and a 1280x960 drawable? Thank you for testing and confirming that the code is correct. I wonder what stops it from working on my system...
|
|||||||||||
|
Retina display support in SDL 2.0.1 not working? |
urkle
|
On 10/25/2013 09:41 PM, kloffy wrote:
This is *new* code. it has been tested by a few people (both at Valve and by me). There are some quirks that we'll need to fix. Have you tested the testgl2 "test" code? as that one I know DOES work. Just pass in --allow-hidpi to it. Now.. I do have to ask.. you ARE testing this on a HiDPI capable computer AND are currently in a "retina" resolution right?
|
|||||||||||||||
|
Re: Retina display support in SDL 2.0.1 not working? |
kloffy
|
Yes, I am aware that it is new, in fact I mentioned that in my first post. However, I wanted to try it out since it is advertised as a feature of the latest official release (SDL 2.0.1). The HiDPI support in testgl2 is not working for me either. I testing on a recent MacBook Pro with NVIDIA GeForce GT 650M 1024 MB graphics and a 15-inch retina display (2880x1800). The main purpose of my post is to see if anybody else can reproduce the problem. If it is not a simple coding error on my behalf, I will consider submitting a bug report. |
|||||||||||||
|
Retina display support in SDL 2.0.1 not working? |
gabomdq
|
2013/10/29 Edward Rudd
testgl2 --allow-highdpi works for fine me on a 13" Iris based rMBP. However, if I pass --fullscreen to it, forcing a video mode change, in that case the screen changes modes and goes black. Switching back to windowed mode, and into full screen again seems to work, but this is likely because this second full screen mode change is done using the fullscreen-desktop method. Gabriel. |
|||||||||||||||||
|
kloffy
|
Thank you for providing more detail! It certainly seems like it is an isolated issue on my system. Unfortunately, I have run out of ideas on how to debug it. Anyway, I suppose I'll have to live with low DPI for now. Perhaps the problem will fix itself once I update to Mavericks.
|
|||||||||||
|
rippon
|
Did you ever get this working? My Mac builds don't seem to be playing nice with Retina support either - I'm building on Mavericks on my 15" MBP type-R, setting that flag as such:
g_sdlWindow = SDL_CreateWindow("Muteki Application", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 960, 540, SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); No luck, low res app frame, low res rendering. It's not the end of the world, because my game, Dragon Fantasy, already renders at a target resolution of 320x180 because pixels are awesome. But I'd like to make it at least look like the Mac version didn't take a step back when I switched our custom porting libraries out in favor of SDL! |
|||||||||||
|
kloffy
|
Unfortunately, I couldn't get it to work. Good to hear that I'm not the only one having problems, though. So, by the sound of it upgrading to Mavericks wouldn't help me either...
|
|||||||||||
|
Retina display support in SDL 2.0.1 not working? |
gabomdq
|
2014-02-10 14:10 GMT-03:00 rippon:
Did you try this with SDL from HG? I know that Broken Age for example shipped with Retina support via SDL, and running SDL tests in "high DPI" mode seems to work in my late 2013 13" MBP. -- Gabriel. |
|||||||||||||
|
rippon
|
Haven't tried with the stuff in HG - it hasn't been super important for me yet. When 2.0.2 comes out I'll give that a go and see if it fixes it, and if not I'll poke at it more then.
|
|||||||||||
|
Retina display support in SDL 2.0.1 not working? |
Sam Lantinga
|
We just added SDL high DPI support to the Mac In-Home Streaming client and it looks fantastic.
On Thu, Feb 13, 2014 at 2:05 AM, Gabriel Jacobo wrote:
|
|||||||||||||||
|
Retina display support in SDL 2.0.1 not working? |
Daniel Bünzli
Guest
|
Le lundi, 10 février 2014 à 18:10, rippon a écrit :
I never tried the high dpi support using SDL_WINDOW_ALLOW_HIGHDPI. But regarding the window frame one problem I had is that it would look fine when the executable was launched on the command line, but low res when wrapped in an .app bundle. This was solved by adding the following key to the app's Info.plist : <key>NSHighResolutionCapable</key><true/> In any case see [1] if you need more info about troubleshooting these issue. Daniel [1] https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Re: Retina display support in SDL 2.0.1 not working? |
kloffy
|
That was exactly it. I guess I should have RTFM, but this is easy to miss. Thanks a lot for helping clear that up! |
|||||||||||||
|