A
anomalous
Guest
I'm currently using an alarm every 30 steps that checks for a change in window size since it last checked.
If it has changed, it runs my "set resolution" script that fixes everything to match the new resolution.
This works fine when I drag corners of the window to stretch it.
This does not appear to register when I click the windows maximize or "non-maximize" toggle, even though the window obviously changes size. Is there a way to detect that or am I missing something?
That code is as follows:
Les important, it seems as though if I use full-screen resolution in windowed mode, it's not correct when it comes to gui coordinates. For now, I will simply force any full screen resolution into full-screen mode, and if any other resolution I'll let it go to windowed mode. But it would still be nice to know if that's expected behavior.
If it has changed, it runs my "set resolution" script that fixes everything to match the new resolution.
This works fine when I drag corners of the window to stretch it.
This does not appear to register when I click the windows maximize or "non-maximize" toggle, even though the window obviously changes size. Is there a way to detect that or am I missing something?
That code is as follows:
Code:
alarm[0] = 30;
if window_get_width() != window_w_previous || window_get_height() != window_h_previous{
scr_game_control_set_resolution(true);
with o_room_control event_user(1);
}
window_w_previous = window_get_width();
window_h_previous = window_get_height();