Funplayer's Window Unlocker

Hello, I don't know if anyone has ever used Funplayer's Window Unlocker, but it's really amazing for the utility it offers, especially to the older VX game window.

I was wondering if anyone could help me make a couple of modifications, or at least tell me if they are at all possible.

For one, because it's always doing some math in the background to redraw the screen and maintain the aspect ratio, even the default screen size has some visual errors. There is some pixel-shifting that looks especially noticeable on portraits or non-pixel art lines. I imagine this is some rounding problem that is inevitable when you start stretching screens.

I'm curious if it's possible to add a sort of conditional exception that checks whether the screen is anything other than the default size before running the math. And also, as a bonus, if it's possible to check for a multiple of the native resolution (like 1088 x 832) that similarly eliminates the rounding problems.

Thanks!
Hi everyone, just wanted to say that the above changes (as well as some bug-fixes and performance improvements) were made by @JorgeMaker. Thanks to him and Funplayer for what has resulted in what I consider one of the more essential scripts for the entire engine.

Original thread: https://forums.rpgmakerweb.com/threads/funplayers-window-unlocker.176513/