From c982f0ac89522089735c3028b45c0b42a0c00e75 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 29 Dec 2021 23:41:10 +0100 Subject: [PATCH] Fixed taking screenshots with effects off. --- src/win/win_sdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win/win_sdl.c b/src/win/win_sdl.c index 11315c3b5..4fc735a1c 100644 --- a/src/win/win_sdl.c +++ b/src/win/win_sdl.c @@ -246,6 +246,10 @@ sdl_blit(int x, int y, int w, int h) r_src.w = w; r_src.h = h; SDL_UpdateTexture(sdl_tex, &r_src, &(buffer32->line[y][x]), 2048 * sizeof(uint32_t)); + + if (screenshots) + video_screenshot((uint32_t *) buffer32->dat, x, y, 2048); + video_blit_complete(); SDL_RenderClear(sdl_render);