From 693742a7a4180503727816801a7bb7a8f65ff750 Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Mon, 24 May 2021 22:27:45 +0100 Subject: [PATCH] Fixed label alignment --- projects/examples/gui/label.usm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/examples/gui/label.usm b/projects/examples/gui/label.usm index dc04af6..f84f614 100644 --- a/projects/examples/gui/label.usm +++ b/projects/examples/gui/label.usm @@ -75,7 +75,7 @@ RTN @draw-label-right ( x y color addr -- ) ( load ) .label/addr STZ2 .label/color STZ .Screen/y DEO2 - ( align ) .label/addr LDZ2 ;get-text-length JSR2 #0008 MUL2 SUB2 #0008 SUB2 .Screen/x DEO2 + ( align ) .label/addr LDZ2 ;get-text-length JSR2 #0008 MUL2 SUB2 .Screen/x DEO2 .label/addr LDZ2 &loop ( draw ) DUP2 LDA #00 SWP #0008 MUL2 ;font ADD2 .Screen/addr DEO2 .label/color LDZ .Screen/color DEO