treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
768 stars 32 forks source link

Experimental HiDPI Support #176

Open elcritch opened 2 years ago

elcritch commented 2 years ago

I've been toying around with scaling on HiDPI systems, at least for the OpenGL backend.

This appears to be the best way to ensure everything is scaled properly. It requires de-scaling when calculating progress bars and other calculations. I added a getScale template to help with this and it doesn't seem too bad.