borodust / bodge-ui

High-level immediate mode user interface library based on Nuklear IM GUI library
MIT License
15 stars 1 forks source link

HiDPI support #9

Closed chuchana closed 5 years ago

chuchana commented 5 years ago

There seems to be a problem with HiDPI support.

The example (bodge-ui.example:run) looks like this:

1680x1050x2

When I switch to the non-retina version of the same resolution, it looks like this: 1680x1050

The window is scaled 4x instead of 2x while the content stays the same size (400x400).

borodust commented 5 years ago

bodge-ui itself doesn't know anything about underlying system - programmer would need to manage canvas resolution (her-)himself - meaning example should be augmented to handle HiDPI displays. Instead, bodge-ui-window tries to solve that problem (HiDPI support), but Retina is still broken there because I don't have access to Retina-powered MacOS machine (linux and windows HiDPI support is ok though).

Ping me in #cl-bodge IRC channel at freenode.net or directly with a private message and we can try to fix the problem present in bodge-ui-window.

chuchana commented 5 years ago

There's Quartz Debug in the Additional Tools for XCode (formerly Graphics Tools for XCode) which lets you simulate a retina screen on a regular one: https://developer.apple.com/download/more/

borodust commented 5 years ago

Oh, thank you! I'll keep that in mind.