erase patterns first in clear screen

This commit is contained in:
nino-porcino 2021-12-15 16:54:13 +01:00
parent 40ec940266
commit bccd2ba829
1 changed files with 7 additions and 7 deletions

View File

@ -36,6 +36,13 @@ void screen2_init_bitmap(byte color) {
TMS_WRITE_DATA_PORT(i); NOP; // color
}
// fill pattern table with 0 (clear screen)
tms_set_vram_write_addr(SCREEN2_PATTERN_TABLE);
for(word i=768*8;i!=0;i--) {
TMS_WRITE_DATA_PORT(0);
NOP;
}
// fill color table with black on white
tms_set_vram_write_addr(SCREEN2_COLOR_TABLE);
for(word i=768*8;i!=0;i--) {
@ -49,13 +56,6 @@ void screen2_init_bitmap(byte color) {
TMS_WRITE_DATA_PORT(i & 0xFF);
NOP;
}
// fill pattern table with 0 (clear screen)
tms_set_vram_write_addr(SCREEN2_PATTERN_TABLE);
for(word i=768*8;i!=0;i--) {
TMS_WRITE_DATA_PORT(0);
NOP;
}
}
void screen2_putc(byte ch, byte x, byte y, byte col) {