From ceaf456371496d6705f31b57f3a681ab2db1acb8 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 27 Sep 2007 01:21:29 +0000
Subject: [PATCH] First Linux ciolib fix.

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

diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index 72b0f8493f..9e8eca6c3c 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -146,8 +146,10 @@ int bitmap_init_mode(int mode, int *width, int *height)
 	/* TODO: Re-enable this
 	send_rectangle(0,0,screenwidth,screenheight,TRUE);
 	*/
+	pthread_mutex_unlock(&vstatlock);
 	bitmap_loadfont(NULL);
 	/* TODO: Remove this next line */
+	pthread_mutex_lock(&vstatlock);
 	update_rect(1,1,cio_textinfo.screenwidth,cio_textinfo.screenheight,TRUE);
 	pthread_mutex_unlock(&vstatlock);
 
-- 
GitLab