fix "clean screenshot"

This commit is contained in:
Roman Fomin 2024-11-21 11:55:07 +07:00
parent bc2f6d3aeb
commit 9872a993b8

View File

@ -1052,6 +1052,8 @@ byte I_GetNearestColor(byte *palette, int r, int g, int b)
// [FG] save screenshots in PNG format
boolean I_WritePNGfile(char *filename)
{
UpdateRender();
// [FG] adjust cropping rectangle if necessary
SDL_Rect rect = {0};
SDL_GetRendererOutputSize(renderer, &rect.w, &rect.h);