From 774dcf80897918b98b490bd2c592fb87716cc2a0 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Mon, 1 Mar 2021 20:47:15 -0800 Subject: [PATCH] Fix bank 1 bleed-through --- js/gl.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/gl.ts b/js/gl.ts index 72f90c4..9ee7413 100644 --- a/js/gl.ts +++ b/js/gl.ts @@ -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++) {