gui2: more work, added image viewer.
This commit is contained in:
@@ -118,6 +118,40 @@ GuiCntrl_Every100ms:
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine GuiCntrl_Every100ms @global
|
||||
;
|
||||
; @param Z byte address of guiapp object (for LPM!)
|
||||
; @param X ptr to msg received
|
||||
|
||||
GuiCntrl_MsgReceived:
|
||||
push zl
|
||||
push zh
|
||||
bigcall OBJ_GetFirstChild
|
||||
GuiCntrl_MsgReceived_loop:
|
||||
mov zl, r18
|
||||
mov zh, r19
|
||||
or r18, r19
|
||||
breq GuiCntrl_MsgReceived_loopEnd
|
||||
; let child handle msg signal
|
||||
ldi r16, OBJECT_SIGNAL_RECVMSG
|
||||
clr r17
|
||||
push xl
|
||||
push xh
|
||||
bigcall OBJ_HandleSignal
|
||||
pop xh
|
||||
pop xl
|
||||
bigcall OBJ_GetNext
|
||||
rjmp GuiCntrl_MsgReceived_loop
|
||||
GuiCntrl_MsgReceived_loopEnd:
|
||||
pop zh
|
||||
pop zl
|
||||
sec
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine guiCntrlCheckTouch
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user