avr: added Widget_OnDrawNop

This commit is contained in:
Martin Preuss
2026-01-17 17:15:48 +01:00
parent c2489e1866
commit a52d7dd783
2 changed files with 23 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ testRootWin_flashdata:
.dw STYLE_WIN_FONT*2 ; font .dw STYLE_WIN_FONT*2 ; font
.dw testRootWin_ramdata ; ptr to SDRAM .dw testRootWin_ramdata ; ptr to SDRAM
testRootWin_signalmap: testRootWin_signalmap:
.db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate)
.db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDrawNop), HIGH(Widget_OnDrawNop)
.db 0, 0, 0, 0 ; end of table .db 0, 0, 0, 0 ; end of table

View File

@@ -220,6 +220,27 @@ Widget_OnDraw_ret:
; ---------------------------------------------------------------------------
; @routine Widget_OnDrawNop @global
;
; this routine only clears the DIRTY bit
;
; @param Z byte address of widget object (for LPM!)
; @param xl param1
; @param xh param2
; @return CFLAG set if signal handled
; @clobbers any, !Z
Widget_OnDrawNop:
rcall Widget_GetSdramPtr
ldd r17, Y+WIDGET_SD_OFFS_FLAGS
cbr r17, (1<<WIDGET_FLAGS_DIRTY_BIT)
std Y+WIDGET_SD_OFFS_FLAGS, r17
ret
; @end
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
; @routine Widget_IsPointInRect @global ; @routine Widget_IsPointInRect @global
; ;