
[CODE SUBMISSION] Choosing/forcing Aspect Ratio
Moderator: GZDoom Developers
- Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
- Contact:
Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio
Now let me trying to hit the nail
— the OP has a crappy monitor where the pixel aspect ratio is ≥1.2 for any 4:3 mode, that's all. As such, the video output of the program (Zdoom) produces shall be horizontally squished (i.e. the perspective may not “line up”, as Enjay called it—just like calling “Resize” in your favorite image editor while “keep aspect ratio” is disabeld), similar to how DVD video is actually encoded on-disc.

Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio
Can this code be added? It works perfectly, and I don't think it really needs a menu option, at least not for us console-literate users.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio
Added with a few changes:
This submission made the new CVAR depend on other settings like blocking widescreen or 5:4 ratios. However, since this is supposed to override the default resolution it should also override these blocks.
This submission made the new CVAR depend on other settings like blocking widescreen or 5:4 ratios. However, since this is supposed to override the default resolution it should also override these blocks.
Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio
Your version is probably cleaner coded, I'm sure, as well. I'm used to creating functions for every set of functions that I repeat more than 2 times, but C++ is still kinda new territory to me. Sometimes the oversimplification with scripting languages is a boon.
Anyway, thanks Graf.
