Skip to content

Conversation

gera2342
Copy link

@gera2342 gera2342 commented Mar 25, 2024

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

These shortcuts are common in games.

raylib.ads Outdated
Import => True,
Convention => C,
External_Name => "CloseWindow";
procedure ToggleFullscreen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be Toggle_Fullscreen to be coherent with the conventional Ada style that Tsoding is using.

Copy link
Author

@gera2342 gera2342 Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, changed

@gera2342 gera2342 force-pushed the fullscreen branch 2 times, most recently from cded84b to f68dd75 Compare March 26, 2024 13:59
@rexim
Copy link
Member

rexim commented Mar 27, 2024

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants