From 3e2ddb725f268f1cefd04d3f790677899ce4b41d Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Wed, 2 Feb 2022 08:03:38 -0500 Subject: [PATCH] fix off-by-one when drawing 80 column text --- apple/appledisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/appledisplay.cpp b/apple/appledisplay.cpp index 962948e..84bc6fe 100644 --- a/apple/appledisplay.cpp +++ b/apple/appledisplay.cpp @@ -406,7 +406,7 @@ void AppleDisplay::redraw80ColumnText(uint8_t startingY) cptr = xlateChar(mmu->readDirect(addr, 1), &invert); for (uint8_t y2 = 0; y2<8; y2++) { uint8_t d = *(cptr + y2); - for (uint8_t x2 = 0; x2 <= 7; x2++) { + for (uint8_t x2 = 0; x2 < 7; x2++) { uint16_t basex = (col*2)*7; bool pixelOn = (d & (1<readDirect(addr, 0), &invert); for (uint8_t y2 = 0; y2<8; y2++) { uint8_t d = *(cptr + y2); - for (uint8_t x2 = 0; x2 <= 7; x2++) { + for (uint8_t x2 = 0; x2 < 7; x2++) { uint16_t basex = (col*2+1)*7; bool pixelOn = (d & (1<