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

Fix non-HiDPI mode on HiDPI displays on macOS Catalina. #32809

Merged
merged 1 commit into from Oct 13, 2019

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Oct 13, 2019

Fixes #32805

On macOS 10.15 HiDPI support is on by default, we need to directly specify we do not need scaling if HiDPI is not allowed by project settings.

@AlexRixhardson
Copy link
Contributor

Tested on MacBook Pro (Retina, Mid 2012) and it works perfectly. Thanks!

@AlexRixhardson
Copy link
Contributor

I recommend this patch to be put into the 3.2 milestone.

@akien-mga akien-mga added this to the 3.2 milestone Oct 13, 2019
@akien-mga akien-mga merged commit 1fed266 into godotengine:master Oct 13, 2019
@akien-mga
Copy link
Member

Thanks!

@bruvzg bruvzg deleted the macos_1015_non_hidpi_fix branch October 14, 2019 03:56
@akien-mga
Copy link
Member

Cherry-picked for 3.1.2.

@akien-mga
Copy link
Member

Cherry-picked for 3.0.7.

@akien-mga
Copy link
Member

@bruvzg For the 2.1 branch only half of the patch applies properly (the added else branch). Do you think it's sufficient or are more changes needed there?

@bruvzg
Copy link
Member Author

bruvzg commented Oct 25, 2019

Do you think it's sufficient or are more changes needed there?

  • First part is to change scale on moving from one screen to another (having retina MacBook with non-retina secondary display is pretty common).

It's better to add whole if-else for the first part os_osx.mm#L340-L344 and the change in this line os_osx.mm#L348 (cherrypick #11718 changes).

  • Second part is for the new window creation and should apply as is.

@akien-mga
Copy link
Member

Thanks for the details! I wouldn't be able to test the changes myself beyond ensuring that it compiles, so if you're able to do and test the relevant cherry-picks for 2.1, that would be very helpful.
We don't necessarily need to backport full blown HiDPI support if it was lacking in the 2.1 branch, as long as we keep the current state working (so satisfying Catalina's new requirements).

bruvzg added a commit to bruvzg/godot that referenced this pull request Dec 12, 2019
akien-mga added a commit that referenced this pull request Dec 12, 2019
[Vulkan] Restore parts of #33783 and #32809 missing after rebase.
akien-mga pushed a commit to akien-mga/godot that referenced this pull request Feb 11, 2020
akien-mga added a commit to akien-mga/godot that referenced this pull request Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Game is scaled to 1/4th of the screen on macOS Catalina
3 participants