From f71b5154c7e17caf954d76009678be90d5bea594 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sat, 21 Jul 2018 22:27:43 -0400 Subject: [PATCH] - fix vid_showcurrentscaling so that it works even when vid_scalemode is 2 or greater. --- src/r_videoscale.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_videoscale.cpp b/src/r_videoscale.cpp index 13043c210b..ad2b7077ff 100644 --- a/src/r_videoscale.cpp +++ b/src/r_videoscale.cpp @@ -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); }