From af420d19d3dd07cf239a2a4e9d14cfd16dd35478 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 20 Oct 2019 22:09:08 +0200 Subject: [PATCH] The screenshot code now only decreases the queue counter if buffer32 is NULL. --- src/video/video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/video.c b/src/video/video.c index 16806cfd6..5f62afbe8 100644 --- a/src/video/video.c +++ b/src/video/video.c @@ -40,7 +40,7 @@ * W = 3 bus clocks * L = 4 bus clocks * - * Version: @(#)video.c 1.0.33 2019/10/01 + * Version: @(#)video.c 1.0.34 2019/10/20 * * Authors: Sarah Walker, * Miran Grca, @@ -437,7 +437,8 @@ void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h) { if (screenshots) { - video_screenshot(x, y, w, h); + if (buffer32 != NULL) + video_screenshot(x, y, w, h); screenshots--; video_log("screenshot taken, %i left\n", screenshots); }