AlexvZyl / NativeFramework

💡 A GPU-accelerated native application framework, with performance and scalability at its core. Written in C++ using GLFW, OpenGL and dear imgui.
4 stars 1 forks source link

GUI scaling issue #1

Open Cullen-Enerdyne opened 2 years ago

Cullen-Enerdyne commented 2 years ago

The GUI does not scale properly at different resolutions. See attached image. It was rendered at 4k.

image

Raynhardt-Van-Zyl commented 2 years ago

Good point, will make the sizing scale to display resolution.

AlexvZyl commented 2 years ago

@Cullen-Enerdyne Window resize events can now be passed as either a size in pixels or a scaling factor. We should be able to fix this by scaling all Layers when the Application resizes.