From 16c7c50a9a3fc3d9184480fb9c9b0cc7f5778df1 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 10 Feb 2005 05:19:44 +0000 Subject: [PATCH] textcolor() shouldn't be able to change the background. (ie: Only use the lower 4 bits) --- src/conio/ciolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/ciolib.c b/src/conio/ciolib.c index 46f0939e40..5ee848cb4c 100644 --- a/src/conio/ciolib.c +++ b/src/conio/ciolib.c @@ -746,7 +746,7 @@ void ciolib_textcolor(int colour) ciolib_gettextinfo(&cio_textinfo); attr=cio_textinfo.attribute; attr&=240; - attr|=colour; + attr|=(colour*0x0f); ciolib_textattr(attr); } -- GitLab