team-plover / warlocks-gambit

The Bevy Jam 1 Team Plover game submission
Other
24 stars 2 forks source link

Ui doesn't scale with window size #4

Open BLucky-gh opened 2 years ago

BLucky-gh commented 2 years ago

When switching to full screen or resizing window the ui stays the same size which results in very small ui on big screens.

nicopap commented 2 years ago

I've been running this on a 4K monitor, looks like it scales correctly (X11 Linux). What I'm more worried about is that it's too large for smaller screens. Seems not to be an issue with winit (lists hiDPI support as a feature) maybe bevy HiDPI detection somehow is not working for you? Can you share a screenshot?

BLucky-gh commented 2 years ago

Can you share a screenshot?

image

Running on MacOS. I just ran cargo run on main branch and clicked the full screen button.

Also side note: the fullscreen function does exclusive fullscreen by the looks of it which seems overkill at our scale and does not play nice with MacOS's multi-desktop shortcuts

BLucky-gh commented 2 years ago

Also I just checked: the logo scales properly, the text only tries to stay centered and doesn't actually scale, I just measured with a ruler against my screen