setzer22 / blackjack

A procedural, node-based modelling tool, made in rust 🦀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small interface on MacBook Pro

Kerollmops opened this issue · comments

I am on a MacBook Pro 13.3' which has a high resolution i.e. 2560×1600. I read in the documentation of winit that you should decorrelate window size and resolution.

Thanks for reporting 👍 That's strange, though. I'm using the hidpi scale value as reported by winit and handing that over to egui, so I'm not sure what may be causing this.

I just pushed 3c08b52 (it's on the feat/properties_inspector branch, not main), which adds a "Diagnostics" window under "Help" (top menu bar). If you click that, you should be able to see the dpi scale value. For your screen that value should range somewhere between 1.5 and 2.0. Could you check it out and tell me what the value is?

Yup, it's indeed equal to 2.0 but I send you this screenshot that show that the egui blueprint part of the screen is not at scale.

Capture d’écran 2022-01-30 à 17 40 00

Ah! I see the issue now. The bottom part of the Ui is what's wrong. To support zooming for the node editor, I have to ignore the window scaling (because the panel gets its own dpi-independent scale from zoom). But I should compensate that by setting the default zoom to the right value, right now it's hard-coded at 1.0.

That's an easy fix, I'll push an update shortly addressing this 👍

Fixed in f957a44