From: fgsfds Date: Mon, 2 May 2022 12:01:00 +0000 (+0300) Subject: graphics: fix screenshots when r_resolution_scale != 1 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8065721d62f9484545707edb2e049b39a0542641;p=d2df-sdl.git graphics: fix screenshots when r_resolution_scale != 1 --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index e16a366..4ac5ec7 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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