Fix bank 1 bleed-through

This commit is contained in:
Will Scullin 2021-03-01 20:47:15 -08:00
parent afc5280ac2
commit 774dcf8089
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
1 changed files with 4 additions and 3 deletions

View File

@ -157,6 +157,10 @@ export class LoresPageGL implements LoresPage {
}
this._buffer[bank][base] = val;
if (!_80colMode && bank === 1) {
return;
}
const col = (base % 0x80) % 0x28;
const adj = off - col;
@ -246,9 +250,6 @@ export class LoresPageGL implements LoresPage {
}
}
} else {
if (!_80colMode && bank == 1) {
return;
}
if (_80colMode && !an3) {
let offset = (col * 14 + (bank ? 0 : 1) * 7 + row * 560 * 8) * 4;
for (let jdx = 0; jdx < 8; jdx++) {