Here is another example, room size 640x480
window size 640x480
have a keyboard event: (i.e. vk_right) window_set_size(720x480);
have another keyboard event: (i.e. vk_left) window_set_size(640x480);
In this example, window size will change if you press right, BUT if you press left it won't change back to 640x480 and will stick to 720x480.
However, if you were to change the 640 for 641x480, then it would change back to 641x480, but never back to its origin.
Also, example above, if you resize to 720x480, hit F4 to full screen then F4 to window again, then try to go back to 641x480, it will stick to the new 720x480.
|