gui2: more work, added image viewer.

This commit is contained in:
Martin Preuss
2026-01-14 22:57:14 +01:00
parent 99c58d13e2
commit 37689fbc1d
7 changed files with 393 additions and 173 deletions

View File

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