michaelfairley / rust-imgui-opengl-renderer

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

Fix support for high-dpi displays #9

Closed alexkirsz closed 4 years ago

alexkirsz commented 4 years ago

Hi!

imgui rendering is currently broken on high-dpi displays where display_framebuffer_scale != [1.0, 1.0]. The framebuffer width and height are computed properly, but the scissor boundaries do not take the framebuffer scale into account.

Before: image

After: image

rasky commented 4 years ago

@michaelfairley ping on this, I've got the same bug

michaelfairley commented 4 years ago

Sorry that took so long! I just released this in 0.6.1