[CODE SUBMISSION] Choosing/forcing Aspect Ratio

Moderator: GZDoom Developers

User avatar
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

Post by Hirogen2 »

Now let me trying to hit the nail :mrgreen: — 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.
User avatar
phi108
Posts: 976
Joined: Sat Dec 01, 2007 6:28 pm

Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio

Post by phi108 »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio

Post by Graf Zahl »

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.
User avatar
Rachael
Posts: 13946
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [CODE SUBMISSION] Choosing/forcing Aspect Ratio

Post by Rachael »

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”