avr: minor changes

- save Y in GuiApp_ShowView
- fix apidoc
- change order in guiAppShowCurrent
This commit is contained in:
Martin Preuss
2026-02-09 19:07:05 +01:00
parent 05ac62ef54
commit 4fec5433b3

View File

@@ -357,7 +357,11 @@ GuiApp_ShowView:
or r18, r19 ; 0 if r19:r18==X
breq GuiApp_ShowView_ret ; same, no change
rcall guiAppHideCurrent
push yl
push yh
rcall guiAppHideCurrent ; (any, !X, !Z)
pop yh
pop yl
; store new view
std Y+GUIAPP_SD_OFFS_CURRENTWIDGET_LO, xl
@@ -448,7 +452,7 @@ GuiApp_UngrabTouchEvents_ret:
; @routine guiAppHideCurrent
;
; @param Z byte address of gui app object (for LPM!)
; @clobbers any, !X, !Y. !Z
; @clobbers any, !X, !Z
guiAppHideCurrent:
push zl
@@ -476,7 +480,7 @@ guiAppHideCurrent_done:
; @routine guiAppShowCurrent
;
; @param Z byte address of gui app object (for LPM!)
; @clobbers any, !X, !Y. !Z
; @clobbers any, !X, !Z
guiAppShowCurrent:
push zl
@@ -487,14 +491,16 @@ guiAppShowCurrent:
mov r16, zl
or r16, zh
breq guiAppShowCurrent_done
ldi r16, WIDGET_SIGNAL_SHOW
clr r17
bigcall OBJ_HandleSignal
ldi r16, (1<<WIDGET_FLAGS_ACTIVE_BIT) | (1<<WIDGET_FLAGS_DIRTY_BIT)
bigcall Widget_AddFlagsDown
ldi r16, WIDGET_SIGNAL_SHOW
clr r17
bigcall OBJ_HandleSignal ; (any, !X, !Y. !Z)
guiAppShowCurrent_done:
pop zh
pop zl
rcall guiAppDrawWidgets ; (any, !Z)
ret
; @end