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

In-Game: window_set_fullscreen() does not actually make window fullscreen #9625

Open
2 tasks done
EvanRosatoEMR opened this issue Mar 4, 2025 · 4 comments
Open
2 tasks done
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@EvanRosatoEMR
Copy link

EvanRosatoEMR commented Mar 4, 2025

Description

I have the game set to make the game fullscreen just by pressing a key.

However, when this happens, the game doesn't actually become fullscreen. Instead, the window's upper tap is removed, and the viewport stretches to fit, but that's it. The game doesn't become fullscreen at all. I;ve made sure that fullscreening and window resizing are allowed, as well as trying to start the game in fullscreen, but neither options fix the problem.

Image

if I mash the key that triggers the fullscreen affect a few times, however, the game WILL go fullscreen...

Image

But then if I press the F key again, the game will become a window... and have aspect ratio issues causing the image to become squashed/stretched again.

I am currently using the latest version of the Steam release of GMS 2.

https://drive.google.com/file/d/1O7NKgozLjoagNfUjhJqOA_3TEVIYlzBw/view?usp=drive_link

I'd go to the forums to talk about this, but something is wrong with it. Whenever I try to log in, it takes me to a blank "403 Forbidden" page. Not sure what's up with that.

Expected Change

For the function to properly arrange and align the window so they it is centered on the screen, maintaining the game's aspect ratio, and actually goes fullscreen.

Steps To Reproduce

  1. Start GameMaker on Steam
  2. Call the "Window_set_fullscreen()" function during gameplay, setting it to "true"
  3. Call said function multiple times in rapid succession
  4. Observe [issues]

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.11.0 (Monthly)

Which platform(s) are you seeing the problem on?

Windows

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@EvanRosatoEMR EvanRosatoEMR added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Mar 4, 2025
@stuckie stuckie moved this from Triage to Backlog in Team Workload Mar 4, 2025
@YYDan YYDan changed the title Window_set_fullscreen doesn't actually make window fullscreen In-Game: window_set_fullscreen() does not actually make window fullscreen Mar 4, 2025
@YYDan
Copy link
Collaborator

YYDan commented Mar 4, 2025

Hi - unfortunately, you must not have selected "Yes" for allowing GameMaker to include your project, as there is no game project inside that .zip file.

However, before you send us any copies of your game, you should check if you're using the Steamworks extension in that project, as that did get a fix a little while back for something in the extension kicking you out of fullscreen. It's also worth confirming that you're using the latest versions of any other extensions in that project, as I can see from your output log that you're using Scribble at least.

You should also check whether any GPU drivers are in the process of being updated AND (regardless of whether an update is available) make sure you reboot your PC and then check if this has fixed the problem. We have seen instances of games do not reliably enter fullscreen/kick themselves out again after a second, but usually a reboot of the PC fixes them, showing that it was not a bug for us to fix.

Only if all of the above fails to fix the issue do we need you to send your game and fresh logging to us - if any of the above fix it, just let us know and we can close the bug report.

If you do need to send us the sample, please open the project inside GameMaker (and ideally recreate the problem in-game), then use the Help menu's "Upload a Bug/Ticket Sample" tool and say yes to GameMaker privately sending us your project. Copy the download link GameMaker gives you and then paste that link here as a new comment, please.

Thanks!

Why Have You Asked Me For A Sample?

@YYDan YYDan removed their assignment Mar 4, 2025
@EvanRosatoEMR
Copy link
Author

Oh, whoops, that's my bad. I thought I sent the file with the project in it. Sorry!

I'll try the things you suggested, thank you very much.

@EvanRosatoEMR
Copy link
Author

EvanRosatoEMR commented Mar 4, 2025

I have tried your suggestions.

I am not using the Steamworks extension, and I updated Scribble to it's most recent version, and it did not fix the issue.

Both my display drivers are up to date, and my computer does this lovely thing where it reboots by itself at total random, and every time it did, the bug has stayed.

Whenever I try to upload a bug/ticket sample, I am met with this error message:

Image

I provided the actual bug package with the game properly inside it this time.

@YYDan
Copy link
Collaborator

YYDan commented Mar 6, 2025

To fix that "unauthorised" you should just need to sign out and in again inside GameMaker - sorry, I should have said this in my last reply. We're adding a dialog into GameMaker to say this soon.

Thanks for the project. I have now downloaded your file and uploaded it to our private server (as it contains your game) and changed all the links above accordingly.

@YYDan YYDan added the project This issue has a sample project attached label Mar 6, 2025
@YYDan YYDan self-assigned this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Backlog
Development

No branches or pull requests

2 participants