Skip to content
Snippets Groups Projects
Commit 16c7c50a authored by deuce's avatar deuce
Browse files

textcolor() shouldn't be able to change the background.

(ie: Only use the lower 4 bits)
parent 125ec160
No related branches found
No related tags found
No related merge requests found
...@@ -746,7 +746,7 @@ void ciolib_textcolor(int colour) ...@@ -746,7 +746,7 @@ void ciolib_textcolor(int colour)
ciolib_gettextinfo(&cio_textinfo); ciolib_gettextinfo(&cio_textinfo);
attr=cio_textinfo.attribute; attr=cio_textinfo.attribute;
attr&=240; attr&=240;
attr|=colour; attr|=(colour*0x0f);
ciolib_textattr(attr); ciolib_textattr(attr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment