Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling fullscreen #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jiffygist
Copy link

@jiffygist jiffygist commented Mar 25, 2024

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

These shortcuts are common in games.

raylib.ads Outdated
@@ -13,6 +13,12 @@ package Raylib is
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

@jiffygist jiffygist 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

@jiffygist jiffygist 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