Skip to content
Snippets Groups Projects
Commit 632ff18d authored by deuce's avatar deuce
Browse files

Get rid of some magic number usage.

parent be38761e
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ CIOLIBEXPORT cioapi_t cio_api;
static const int tabs[]={1,9,17,25,33,41,49,57,65,73,81,89,97,105,113,121,129,137,145};
static int ungotch;
struct text_info cio_textinfo;
static int lastmode=3;
static int lastmode=C80;
CIOLIBEXPORT int _wscroll=1;
CIOLIBEXPORT int directvideo=0;
CIOLIBEXPORT int hold_update=0;
......@@ -367,7 +367,7 @@ CIOLIBEXPORT int CIOLIBCALL initciolib(int mode)
cio_textinfo.normattr=14;
break;
default:
cio_textinfo.normattr=7;
cio_textinfo.normattr=LIGHTGRAY;
}
_beginthread(ciolib_mouse_thread,0,NULL);
return(0);
......@@ -701,13 +701,15 @@ CIOLIBEXPORT void CIOLIBCALL ciolib_textmode(int mode)
{
CIOLIB_INIT();
if(mode==-1) {
if(mode==LASTMODE) {
cio_api.textmode(lastmode);
lastmode=cio_textinfo.currmode;
}
else {
if(mode==64)
mode=C80X50;
if(mode==_ORIGMODE)
mode=C80;
lastmode=cio_textinfo.currmode;
cio_api.textmode(mode);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment