fix initial text- and background colors

This commit is contained in:
mrdudz
2015-09-27 18:36:53 +02:00
parent 9e08c53b01
commit fba28f46f6
3 changed files with 15 additions and 15 deletions

View File

@@ -5,13 +5,14 @@
void main(void)
{
int i, j;
unsigned char xsize, ysize, n;
int i, j, n;
unsigned char xsize, ysize, tcol;
clrscr();
screensize(&xsize, &ysize);
cputs("cc65 conio test");
tcol = textcolor(1);
cputsxy(0, 2, "colors:" );
for (i = 3; i < 6; ++i) {
gotoxy(i,i);
@@ -20,7 +21,7 @@ void main(void)
cputc('X');
}
}
textcolor(1);
textcolor(tcol);
cprintf("\n\n\rscreensize is: %dx%d", xsize, ysize );