Aspect Ratio Controller (enforce window aspect ratio)

Hey everyone,

I wrote a script that enforces an arbitrary aspect ratio for standalone Windows builds (Windows only, 32/64 bit).
It works by intercepting window resize events (specifically the WinProc callback function) and modifying them to maintain the desired aspect ratio.

I’m not sure how useful it really is since you could just use letterboxing and stay platform independent, but if you’re interested, feel free to take a look:

Any feedback is, of course, most welcome. :slight_smile:

5 Likes

This is awesome! Thanks for sharing!

Just what I was looking for, works sweet, thanks!

Thanks Denchi worked perfectly, and saved me a ton of time.

Yes, thanks for the code. Worked perfectly for me as well. Anyone know of a solution for the Mac?

Phenomenal work! Works exactly as needed.