I'm trying to get a GUIRMouseCursor working, but it seems to cut off at weird places. For example, when the mouse is on the far right, underneath the [X] button, it switches back to the main cursor instead of the custom one I have set. This is a quick DCSB program that illustrates the problem:
Code:
I wasn't sure if it was just that I had the bounds too big one side (100, 100), but when I tried with smaller ones that should have worked (about (y,x) = (62,92)). Here's a snippet of my ASM code regarding this section:
Code:
Code:
:sum(9
:sum(7,1,"F8F8F8F8F8","Testing
:sum(7,24,12*256+9,100*256+100,"0707070707FFFFFF","F8F8F8F8F8000000
:sum(12,12,12,1
Code:
Init:
xor d
ret
jr Start
.dw Description ;or .dw $0000 if you don't have a description
.db $07,$00 ;always this string
.dw Icon ;or .dw $0000 if you don't have an icon
.dw $0000 ;usually .dw $0000 if you don't have or know what an ALE is
Start: ;main routines
OpenGUIStack()
PushGUIStacks(GUIStart)
GUIMouse(0)
GUIStart:
-:
.dw {+}-{-}
.db GUIRLargeWin
.db %1010000
.db %1100000
.db %1000000
.db %1100000
.db %1010000
.db "Drag+Drop",0
+:
; Snip a lot of other GUI elements
GUIR_CustomMouse:
-:
.dw {+}-{-}
.db GUIRMouseCursor
.db 9, 12
.db 100,100 ; TODO: Fix this.
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %11111111
.db %11111111
.db %11111111
GUIR_CustomMouse_SpriteData:
.db $00,$00,$00,$00
.db $00,$00,$00,$00
+:
.dw $FFFF