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

Manual Content: window_set_size/position() pages need to say they will not work on the same frame as calling the other one #8960

Closed
gm-bug-reporter bot opened this issue Jan 7, 2025 · 2 comments
Assignees
Labels
docs-bug GameMaker Manual Bugs
Milestone

Comments

@gm-bug-reporter
Copy link

Description

https://discord.com/channels/262834612932182025/880010995270033458/1326270230556835962

Link to problem discussion in GM discord

When using window_set_position(0,0) immediately before or after a window_set_size call, the position is not correctly set, instead appearing at (0,25)

If i call set_position 1 frame after, it works as intended. Another user tested in discord and did not have this problem, which leads me to believe it may be machine/windows dependent. (im on win10)

Steps To Reproduce

set_window_size(display_get_width(), set_window_height(display_get_height()-50)
note: -50 should be whatever your taskbar size is

then set window_position(0,0).

Which version of GameMaker are you reporting this issue for?

IDE v2024.11.0.179 Runtime v2024.11.0.227

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

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

Windows

c30e0af0-89f7-4c05-8dd2-c5376a8b517e

@gm-bug-reporter gm-bug-reporter bot added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Jan 7, 2025
@stuckie
Copy link

stuckie commented Jan 8, 2025

This is legacy behaviour that we cannot currently change, as various games will depend on it.
It should be documented.

@stuckie stuckie added docs-bug GameMaker Manual Bugs and removed runner-bug In-game bugs with the "GameMaker Studio 2" runtimes labels Jan 8, 2025
@stuckie stuckie moved this from Triage to Backlog in Team Workload Jan 8, 2025
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Backlog to Todo in Team Workload Jan 8, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Jan 8, 2025
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Done to Ready for QA in Team Workload Jan 8, 2025
@gurpreetsinghmatharoo gurpreetsinghmatharoo added this to the 2024.13 milestone Jan 8, 2025
@Emc1923 Emc1923 self-assigned this Jan 10, 2025
@YYDan YYDan changed the title window_set_size and set_position not working on same frame Manual Content: window_set_size/position() pages need to say they will not work on the same frame as calling the other one Jan 16, 2025
@Emc1923
Copy link

Emc1923 commented Feb 26, 2025

Verified manual beta page changed, closing.

@Emc1923 Emc1923 moved this from Ready for QA to Verified in Team Workload Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs
Projects
Status: Verified
Development

No branches or pull requests

3 participants