michaelfairley / rust-imgui-opengl-renderer

OpenGL (3+) rendering for imgui-rs
37 stars 32 forks source link

Add hidpi support #1

Closed ArnaudValensi closed 6 years ago

ArnaudValensi commented 6 years ago

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 commented 6 years ago

Hi!

I recently pushed support for high dpi support onto master in https://github.com/michaelfairley/rust-imgui-opengl-renderer/commit/52ea13c6a619091902a4877db3ed53eb8ae28a34. If it's possible, could you give that commit a try and see if it works for you?

ArnaudValensi commented 6 years ago

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