#How to let window be resizeable but remain square?

5 messages · Page 1 of 1 (latest)

prisma finch
#

Im making a chess game and was wondering if there was a way to let the window be resizable but remain fixed at a 1:1 aspect ratio?

charred siren
#

Operating systems don't really support that. You'll want to add some black bars (or some other background) to your game.

#

(ps: even if this was supported, it makes for a really bad user experience. Please don't do this.)

calm sinew
charred siren
#

In a website it's not a problem because the browser window can still be placed as you want,
but if the actual window had a fixed aspect ratio that would mean it can't be maximised or tiled properly.
Fullscreen would also need black bars, even in a browser.