Skip to content

Fix egui window scaling on Retina displays#247

Closed
SpruceCloud wants to merge 1 commit intorobbert-vdh:masterfrom
SpruceCloud:master
Closed

Fix egui window scaling on Retina displays#247
SpruceCloud wants to merge 1 commit intorobbert-vdh:masterfrom
SpruceCloud:master

Conversation

@SpruceCloud
Copy link

@SpruceCloud SpruceCloud commented Jan 4, 2026

On Retina displays, when clicking the draggable element, the UI starts displaying in the lower left part of the window (1/4 of the size).

Convert logical pixels to physical pixels when resizing the window by multiplying by pixels_per_point(). Fixes issue #245 where the egui content would shrink to 1/4 size on macOS Retina displays when dragging the resize handle.

Unfortunately, I haven't tested the fix on Windows or Linux.

Convert logical pixels to physical pixels when resizing the window
by multiplying by pixels_per_point(). Fixes issue #245 where the
egui content would shrink to 1/4 size on macOS Retina displays
when dragging the resize handle.
@BillyDM
Copy link
Contributor

BillyDM commented Jan 8, 2026

Once #240 is merged, then this issue will be resolved too. I went ahead and added this fix to my 3rd party nih-plug integration.

@SpruceCloud
Copy link
Author

SpruceCloud commented Feb 9, 2026

I am closing this PR, since @BillyDM 's changes will contain the patch.

@SpruceCloud SpruceCloud closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants