gui: use given button mode.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
; @param r17 value for WIDGET_OFFS_PACK
|
||||
; @param r21:r20 img ressource
|
||||
; @param r22 selector (target will be parent, can be overridden later)
|
||||
; @param r23 button mode
|
||||
; @return CFLAG set if new object created, cleared on error
|
||||
; @return Y button created
|
||||
; @clobbers any, !X
|
||||
@@ -36,7 +37,7 @@ ImageButton_new:
|
||||
push r20
|
||||
push r21
|
||||
push r22
|
||||
ldi r20, BUTTON_MODE_NORMAL
|
||||
mov r20, r23
|
||||
bigcall Button_new
|
||||
pop r22
|
||||
pop r21
|
||||
|
||||
Reference in New Issue
Block a user