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

Add hidpi support #1

Closed

Conversation

ArnaudValensi
Copy link

@ArnaudValensi ArnaudValensi commented Jul 4, 2018

Hi,
First I want to say thank you so much for doing this crate ! You make me save a lot of time.

I'm trying to add hidpi support like here: https://github.com/Gekkio/imgui-rs/pull/29/files
But I think I'm missing something.

Here what it looks like without this PR:

2

And with this PR :/

1

Do you have an idea about how to solve this?

If you need to use a fake factor, you can set scale_width and scale_height to 2.0.
Also, this PR is based on the commit of the v.2.2

Thank you

@michaelfairley
Copy link
Owner

Hi!

I recently pushed support for high dpi support onto master in 52ea13c. If it's possible, could you give that commit a try and see if it works for you?

@ArnaudValensi
Copy link
Author

ArnaudValensi commented Jul 5, 2018

It works like a charm, sorry for the disturbance and thank you again.

@ArnaudValensi ArnaudValensi deleted the add-hidpi-support branch July 5, 2018 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants