- fix vid_showcurrentscaling so that it works even when vid_scalemode is 2 or greater.

This commit is contained in:
Rachael Alexanderson 2018-07-21 22:27:43 -04:00
parent e4fd6ee03f
commit f71b5154c7
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ bool ViewportIsScaled43()
void R_ShowCurrentScaling()
{
int x1 = screen->GetClientWidth(), y1 = screen->GetClientHeight(), x2 = int(x1 * vid_scalefactor), y2 = int(y1 * vid_scalefactor);
Printf("Current Scale: %f\n", (float)(vid_scalefactor));
int x1 = screen->GetClientWidth(), y1 = screen->GetClientHeight(), x2 = ViewportScaledWidth(x1, y1), y2 = ViewportScaledHeight(x1, y1);
Printf("Current vid_scalefactor: %f\n", (float)(vid_scalefactor));
Printf("Real resolution: %i x %i\nEmulated resolution: %i x %i\n", x1, y1, x2, y2);
}