Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change resolution on macOS #1659

Open
ChillerDragon opened this issue Nov 11, 2018 · 13 comments
Open

Unable to change resolution on macOS #1659

ChillerDragon opened this issue Nov 11, 2018 · 13 comments

Comments

@ChillerDragon
Copy link
Contributor

I realized the game looks pretty pixalated so i went to the graphics settings and i wonderd why the resoltion is so low. Then I tried to increase it. But after restart the same option was selected even tho the settings and the console said something different. But the game was still full of pixels and not my screen resultion.

The options always showed 1440x900 after client restart.
options

@Dune-jr
Copy link
Member

Dune-jr commented Nov 11, 2018

@ChillerDragon so your gfx_screen_width says something different?

@ChillerDragon
Copy link
Contributor Author

@Dune-jr yes

@ChillerDragon
Copy link
Contributor Author

@Dune-jr oh wait i am not sure the #1660 bug is so confusing

@ChillerDragon
Copy link
Contributor Author

ChillerDragon commented Nov 11, 2018

Ok now i tested it multiple times.
Ingame it always shows the 1440 width and the gfx_screen_width command does the same. Always 1440 (unless you press uparrow to see it agian^^ because #1660).

But when i change it to 2880 it also updates the settings.cfg and the settings.cfg stays at 2880 until the client gets closed then it changes back to 1440.

-->
Seems like writing works but reading fails.

@Dune-jr
Copy link
Member

Dune-jr commented Nov 12, 2018

So, if I understand it right, the game reads gfx_screen_width 2880 from settings.cfg, but says "nope" and goes back to 1440.

Maybe try with smaller resolutions? Is it a big resolution only problem?

@oy
Copy link
Member

oy commented Nov 12, 2018

The fullscreen resolution on mac osx is restricted to the desktop resolution. There used to be a bug in sdl when using sth else - i think the game freezes when tabbing out and then back in. Dunno if that's fixed yet.
b81e295 that was the commit.

@ChillerDragon
Copy link
Contributor Author

@oy i don't know what SDL_WINDOW_FULLSCREEN_DESKTOPis but i normally don't see pixels on my screen.

Yes i realized that the tabbing support has improved a lot c:
But it would be awesome to go with the actual best and screen resoltuion the device has.
resolution
resolution_tw

@Dune-jr
Copy link
Member

Dune-jr commented Nov 12, 2018

Doesn't that require HiDPI support, @ChillerDragon?
#1563 maybe related

@ChillerDragon
Copy link
Contributor Author

@Dune-jr probably but i complete nobo on that field. I just assumed that the desktop resolution my desktop resolution is xd
And i am also not able to lower it but i guess that makes sense because we found that line that hardcodes the resolution on macOS.

@Dune-jr
Copy link
Member

Dune-jr commented Nov 13, 2018

Sounds like #1563

@oy
Copy link
Member

oy commented Nov 13, 2018

Yeah, that's the highdpi problem.

@Dune-jr
Copy link
Member

Dune-jr commented Mar 20, 2020

Worth noting @Learath2 worked on it, leading to https://bugzilla.libsdl.org/show_bug.cgi?id=5046

@Learath2
Copy link
Contributor

Learath2 commented Apr 2, 2020

I want to get this out of the way while looking at SDL issues, @ChillerDragon is this still an issue for you? If so can you debug a little bit for me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants