Fixed the problem of infinite screenshots being taken with the Win32 GUI.

This commit is contained in:
OBattler
2022-07-12 05:45:50 +02:00
parent 5a787bcd8c
commit 30479fc3b9
4 changed files with 5 additions and 5 deletions

View File

@@ -315,7 +315,7 @@ sdl_blit(int x, int y, int w, int h)
video_copy(pixeldata, &(buffer32->line[y][x]), h * (2048) * sizeof(uint32_t));
if (screenshots)
if (monitors[m_monitor_index].mon_screenshots)
video_screenshot((uint32_t *) pixeldata, 0, 0, (2048));
SDL_UnlockTexture(sdl_tex);