DEADSOFTWARE

graphics: fix screenshots when r_resolution_scale != 1
authorfgsfds <pvt.fgsfds@gmail.com>
Mon, 2 May 2022 12:01:00 +0000 (15:01 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Mon, 2 May 2022 12:01:00 +0000 (15:01 +0300)
src/game/g_game.pas

index e16a3661a00c169e0fac650d0554e3ae72be4c73..4ac5ec7ef8fd542e1b04f406e3637ad097fb5cb3 100644 (file)
@@ -7775,7 +7775,7 @@ begin
     name := e_CatPath(dir, Filename + '.png');
     s := createDiskFile(name);
     try
-      e_MakeScreenshot(s, gScreenWidth, gScreenHeight);
+      e_MakeScreenshot(s, gWinSizeX, gWinSizeY);
       s.Free;
       g_Console_Add(Format(_lc[I_CONSOLE_SCREENSHOT], [name]))
     except