mirror of
https://github.com/irmen/prog8.git
synced 2024-11-02 22:04:40 +00:00
fix: don't ignore shape argument to cx16.mouse_config2
This commit is contained in:
parent
5b35232ab4
commit
c2f062a391
@ -393,9 +393,10 @@ asmsub kbdbuf_clear() {
|
|||||||
asmsub mouse_config2(ubyte shape @A) clobbers (A, X, Y) {
|
asmsub mouse_config2(ubyte shape @A) clobbers (A, X, Y) {
|
||||||
; -- convenience wrapper function that handles the screen resolution for mouse_config() for you
|
; -- convenience wrapper function that handles the screen resolution for mouse_config() for you
|
||||||
%asm {{
|
%asm {{
|
||||||
|
pha ; save shape
|
||||||
sec
|
sec
|
||||||
jsr cx16.screen_mode ; set current screen mode and res in A, X, Y
|
jsr cx16.screen_mode ; set current screen mode and res in A, X, Y
|
||||||
lda #1
|
pla ; get shape back
|
||||||
jmp cx16.mouse_config
|
jmp cx16.mouse_config
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user