From 7cdf96b094437ed39f49008d2013b457baf2b531 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 5 Jun 2023 18:02:27 -0400
Subject: [PATCH] Fix GDI brakage in frameskipping.

Win32GDI currently requires two rects to be available.
---
 src/conio/bitmap_con.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index e74a53103e..a81751e697 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -97,7 +97,8 @@ static struct rectlist *free_rects;
 static pthread_mutex_t free_rect_lock;
 static bool throttled;
 static int outstanding_rects;
-#define MAX_OUTSTANDING 1
+// win32gdi requires two rects...
+#define MAX_OUTSTANDING 2
 
 /* The read lock must be held here. */
 #define PIXEL_OFFSET(screen, x, y)	( (y)*(screen).screenwidth+(x) )
-- 
GitLab