From 6448f7901bc0ac4740a793f96f132ef9291e0bfc Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Fri, 3 Jul 2020 04:37:51 +0200 Subject: [PATCH] stores: add bugfix comment for DrawSLine --- Source/stores.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/stores.cpp b/Source/stores.cpp index 49a365cee..7bb2f12eb 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -203,13 +203,13 @@ void DrawSLine(int y) if (stextsize) { xy = SCREENXY(PANEL_LEFT + 26, 25); yy = PitchTbl[sy + 198] + 26 + PANEL_X; - width = 586 / 4; - line = BUFFER_WIDTH - 586; + width = 586 / 4; // BUGFIX: should be 587, not 586 + line = BUFFER_WIDTH - 586; // BUGFIX: should be 587, not 586 } else { xy = SCREENXY(PANEL_LEFT + 346, 25); yy = PitchTbl[sy + 198] + 346 + PANEL_X; - width = 266 / 4; - line = BUFFER_WIDTH - 266; + width = 266 / 4; // BUGFIX: should be 267, not 266 + line = BUFFER_WIDTH - 266; // BUGFIX: should be 267, not 266 } /// ASSERT: assert(gpBuffer);