Closed aeosynth closed 1 year ago
Hi, Currently there is no support for fullscreen no.
Is there anything specific preventing it currently?
It depends a bit on how you want to implement it. There are two ways I see doing it
Both of the above requires correct aspect ratio handling for the screen to look correct. Also it the style of window needs to be changed as well (so no title is shown etc)
So while there is nothing really preventing it it's a bunch of work to support on all platforms as the APIs for each platform is different and currently macOS, Linux, Windows and Redox is supported.
With all backends (except Redox perhaps) having (or soon having) GPU support adding fullscreen is a bit easier. I think what would work is just to create a top most window and the desktop size. This will tax the GPU a bit more for sure but wouldn't require changing the desktop resolution which sometimes has bad side effects (things moving around and not back to correct place and such)
Will this be fine?
i no longer need this
I'm not exactly sure what you mean by create a top most window and the desktop size
, but most games and windowing libraries provide a "true fullscreen" option which changes the monitor's resolution and also a "borderless maximized" option which is just removing all decorations and scaling the window up to the monitor's size
Yes but because minifb just renderes one fullscreen quad pretty much all GPUs can do that at full speed for your desktop resolution. So instead of actually changing the desktop resolution it would render a borderless maximized
window at the current desktop res.
@emoon AFAIK Fullscreen mode is used to prevent compositing and thus reduce latency. So in my opinion this feature should be considered to be implemented.
Hi, I'd like to make windows fullscreen, thanks. I suppose currently I could manually get the screen size and set the image to that.