From 5f61b5d6c8c12d8f3d1e4867c4493da44e088c9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sun, 19 Jan 2025 18:49:28 -0500
Subject: [PATCH] Reset screena *and* screenb, not jsut screena and screena

---
 src/conio/bitmap_con.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index 01d02d894a..ce2602be7d 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -2207,7 +2207,7 @@ static int init_screens(int *width, int *height)
 		pthread_mutex_unlock(&screenlock);
 		return(-1);
 	}
-	screena.toprow = 0;
+	screenb.toprow = 0;
 	memset_u32(screena.rect->data, color_value(vstat.palette[0]), screena.rect->rect.width * screena.rect->rect.height);
 	memset_u32(screenb.rect->data, color_value(vstat.palette[0]), screenb.rect->rect.width * screenb.rect->rect.height);
 	pthread_mutex_unlock(&screenlock);
-- 
GitLab