Merge pull request #88 from markjreed/fix-mouse_config2

fix: don't ignore shape argument to cx16.mouse_config2
This commit is contained in:
Irmen de Jong 2022-10-29 23:22:14 +02:00 committed by GitHub
commit 71d2f091e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}}
}