From f1478d776b887261feb003c73551935424d7e559 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 5 Feb 2021 18:09:21 +0100 Subject: [PATCH] fix vertical line highres 4color --- compiler/res/prog8lib/cx16/gfx2.p8 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/compiler/res/prog8lib/cx16/gfx2.p8 b/compiler/res/prog8lib/cx16/gfx2.p8 index ae82d4d77..bb9d6822c 100644 --- a/compiler/res/prog8lib/cx16/gfx2.p8 +++ b/compiler/res/prog8lib/cx16/gfx2.p8 @@ -410,7 +410,19 @@ _done repeat height { ubyte value = cx16.vpeek(lsb(cx16.r1), cx16.r0) & mask | color cx16.vpoke(lsb(cx16.r1), cx16.r0, value) - cx16.r0 += 640/4 + %asm {{ + ; 24 bits add 160 (640/4) + clc + lda cx16.r0 + adc #640/4 + sta cx16.r0 + lda cx16.r0+1 + adc #0 + sta cx16.r0+1 + bcc + + inc cx16.r1 ++ + }} } } }