Blob Blame History Raw
From 3d5811d8f5ef8b14e39635c7ec9fb9f01ca6c62f Mon Sep 17 00:00:00 2001
From: jede <jede@oric.org>
Date: Sat, 6 Jul 2019 10:19:45 +0200
Subject: [PATCH 018/170] Fix gotoy changecolor

---
 libsrc/telestrat/gotoy.s | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libsrc/telestrat/gotoy.s b/libsrc/telestrat/gotoy.s
index c6010cc2..99ab3ec6 100644
--- a/libsrc/telestrat/gotoy.s
+++ b/libsrc/telestrat/gotoy.s
@@ -10,5 +10,11 @@
 .proc _gotoy
    sta     SCRY
    jsr     _update_adscr
+
+   ; We change the current line, it means that we need to put color attributes again.
+   ; That is not the case with _gotox because, it's on the same line attribute are already set
+   lda     #$01             
+   sta     CHARCOLOR_CHANGE
+   sta     BGCOLOR_CHANGE
    rts
 .endproc
-- 
2.26.0