From c2f062a3919302a2236848fb191e3d0d235a604f Mon Sep 17 00:00:00 2001 From: "Mark J. Reed" Date: Sat, 29 Oct 2022 17:10:06 -0400 Subject: [PATCH] fix: don't ignore shape argument to cx16.mouse_config2 --- compiler/res/prog8lib/cx16/syslib.p8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 9ff5b8fb0..b6708e86f 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -393,9 +393,10 @@ asmsub kbdbuf_clear() { asmsub mouse_config2(ubyte shape @A) clobbers (A, X, Y) { ; -- convenience wrapper function that handles the screen resolution for mouse_config() for you %asm {{ + pha ; save shape sec jsr cx16.screen_mode ; set current screen mode and res in A, X, Y - lda #1 + pla ; get shape back jmp cx16.mouse_config }} }