tsoding / eepers

Simple Turn-based Game
MIT License
344 stars 19 forks source link

Toggling fullscreen #20

Open jiffygist opened 7 months ago

jiffygist commented 7 months ago

For desktops without "fake fullscreen" (like in i3, dwm and others).

These shortcuts are common in games.

rexim commented 7 months ago

I really don't like how ToggleFullscreen works on Windows. It literally tries to change the resolution of the entire screen to the size of the window. You resize the window to some weird size, ToggleFullscreen and it will try to change the resolution to that. We need to approach that differently. Maybe fix the resolution to specific value and forbid resize. Like, I don't know. I need to experiment and see what works the best. That's why I didn't implement it despite how seemingly simple the TODO sounds (Just slap the ToggleFullscreen and call it a day, right?)