X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=conio.c;h=d603349ad0934eb705ad4da2245c8fd5105bb520;hb=5fd1629b862b1a1bba3f70d4d06ba0b0859ec0e6;hp=92598140141e2e12633872e123c3c08ab8fa2965;hpb=222e7873f49cb4b28e872552e8cdc1a8a3e2a605;p=super-star-trek.git diff --git a/conio.c b/conio.c index 9259814..d603349 100644 --- a/conio.c +++ b/conio.c @@ -31,6 +31,7 @@ char color_warning=1; int directvideo; WINDOW *conio_scr; +#ifdef SERGEEV /* Some internals... */ static int colortab(int a) /* convert LINUX Color code to DOS-standard */ { @@ -46,6 +47,7 @@ static int colortab(int a) /* convert LINUX Color code to DOS-standard */ } return COLOR_BLACK; } +#endif /* SERGEEV */ static void docolor (int color) /* Set DOS-like text mode colors */ { @@ -274,11 +276,14 @@ void textbackground (int color) docolor(color); } + void textcolor (int color) { +#ifdef SERGEEV fgc=color; color=(bgc*16)+fgc; docolor(color); +#endif /* SERGEEV */ } void textmode (int mode)