From 9872a993b846484f3e28fb6f74642f7c3fc0a4ad Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Thu, 21 Nov 2024 11:55:07 +0700 Subject: [PATCH] fix "clean screenshot" --- src/i_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i_video.c b/src/i_video.c index 1b4b7f9f..2818f10b 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -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);