d-gamedev-team / dimgui

dimgui is a D port of the imgui OpenGL GUI library.
zlib License
48 stars 13 forks source link

Fix examples to properly scale mouse input on macOS with retina displays #15

Closed n8sh closed 5 years ago

n8sh commented 6 years ago

The cursor position scaling code is enabled by setting version = MaybeHighResolutionDisplay. This is set for OSX and iOS and can be selectively enabled for additional platforms as needed.

AndrejMitrovic commented 5 years ago

Thanks again! I'll check this out on a Mac later, but it looks good enough to go.