avr: added Widget_OnDrawNop
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user