mamedev / mame

MAME
https://www.mamedev.org/
Other
7.89k stars 1.97k forks source link

-nounevenstretch causes windowed mode to stretch - Windows #12560

Open mrpenguinb opened 1 month ago

mrpenguinb commented 1 month ago

MAME version

0.267

System information

Windows 10 64-bit, NVIDIA RTX 3060 Ti (driver version 32.0.15.5599), i5-10600K.

INI configuration details

No response

Emulated system/software

ie15

Incorrect behaviour

Window in windowed mode becomes stretched when using -nounevenstretch When -nounevenstretch is not used, the game/window is consistent with no undesired stretching.

Expected behaviour

-nounevenstretch shouldn't stretch the window/game in windowed mode.

Steps to reproduce

As stated above, use flag -nounevenstretch to see the problem, but make sure to run in a window, to reproduce (duh).

Additional details

No response

rb6502 commented 1 month ago

-nounevenstretch is not well named (and that's my fault). Turning it on forces integer scaling (so each game pixel is the same number of real screen pixels), it doesn't prevent you from stretching the window.

mrpenguinb commented 1 month ago

-nounevenstretch is not well named (and that's my fault). Turning it on forces integer scaling (so each game pixel is the same number of real screen pixels), it doesn't prevent you from stretching the window.

The problem is, by default (not manipulating the window directly), nounevenstretch isn't consistent between fullscreen and windowed graphically.

The graphics itself being stretched no matter how you resize the window, fullscreen will look squished in comparison.