A downloadable extension

Download NowName your own price

Quick links: documentation · source code
Platforms: Windows x86 (inc. YYC)
Versions: GMS 1.4.1804, GMS 1.4.9999, GMS 2.3

This extension improves how window resizing works in GameMaker games when enabled. It is a milder solution than Window Freeze Fix, but also has far fewer possible side effects.

  • Reduces the delay between resize end and the game re-adjusting to new size/aspect ratio from 10 frames to near-instant.
  • Displays the last known image of the game window while resizing (rather than filling the window white). You can configure how you want it to be drawn (stretched, stretched to aspect, not stretched)

Special thanks to Pirate-Rob for funding development of this extension!

Download

Download NowName your own price

Click download now to get access to the following files:

window_resize_fix (for GMS1).gmez 30 kB
window_resize_fix (for GMS2.3+).yymps 18 kB
window_resize_fix demo (GMS2.3).zip 45 kB
window_resize_fix_demo.gmx.zip 2.3 MB

Comments

Log in with itch.io to leave a comment.

(+1)

Unless I'm doing something extremely terribly wrong, it looks like window_resize_fix_init() crashes on the newest version of GMS 2.3 IDE. Can anyone else replicate this or is this a me problem?

(+2)

The recent runtimes have removed a number of long-deprecated functions (including display_set_size), meaning that this extension has to be rewritten somewhat now. I’ve not gotten around to it yet since it’s not a very straightforward thing to research.

Thank you, I appreciate the reply :)

(1 edit) (+2)

Slightly niche, but seems to break if you're running multiple monitors with different scaling. Here's a video of the demo. Monitor on the right is 3840x2160 @ 150% scale, on the left is 1680x1050 @ 100 % scale. If I set both to the same scale this issue disappears.

(+1)

I understand why this is happening (mismatched screen scales cause screen coordinates to be uneven and not match up with screen pixels) but I’m not sure how I’m supposed to fix this without doing a lot of legwork.

Totally fair xD