Calculation bug in vid_showcurrentscaling

Mon Dec 06, 2021 8:10 pm

There's a bug in the way the reported resolutions are calculated for vid_showcurrentscaling in LZDoom (GZDoom gets the calculation right).

The game seems to apply vid_scalefactor to the reported 'real resolution,' resulting in both a falsely reported 'real resolution' as well as a falsely reported 'emulated resolution.'

E.g., at an actual resolution of 1920 x 1080 with vid_scalefactor set to 0.5, the 'real resolution' is reported to be 960 x 540 where it should be 1920 x 1080 and the 'emulated resolution' is reported to be 480 x 270 where it should be 960 x 540.

Re: Calculation bug in vid_showcurrentscaling

Tue Dec 07, 2021 2:01 pm

I think it's fixed, vid_scaletowidth and vid_scaletoheight were also broken.
GetClientWidth() and GetClientHeight() were not available then so i used GetWith() and GetGeight() and they were not the same. Now i've added virtuals to DFrameBuffer.
Hope i've done it right. ... f2940bb048