avr: take all parents pos into account when calculating abs pos

allows for positions relative to parent in widget tables.
This commit is contained in:
Martin Preuss
2026-01-15 17:27:56 +01:00
parent 55292bddf1
commit 99739325df
2 changed files with 26 additions and 21 deletions

View File

@@ -180,7 +180,7 @@ testWinBodyImg1_flashdata:
; WIDGET
.db 0, 0 ; opts lo, hi
.dw 4 ; X
.dw STYLE_WIN_TITLE_HEIGHT+6 ; Y
.dw 6 ; Y
.dw 96 ; W
.dw 96 ; H
.dw STYLE_WIN_FOREGROUND ; front color
@@ -208,7 +208,7 @@ testWinBodyImg2_flashdata:
; WIDGET
.db 0, 0 ; opts lo, hi
.dw 104 ; X
.dw STYLE_WIN_TITLE_HEIGHT+6 ; Y
.dw 6 ; Y
.dw 96 ; W
.dw 96 ; H
.dw STYLE_WIN_FOREGROUND ; front color
@@ -236,7 +236,7 @@ testWinBodyImg3_flashdata:
; WIDGET
.db 0, 0 ; opts lo, hi
.dw 212 ; X
.dw STYLE_WIN_TITLE_HEIGHT+6 ; Y
.dw 6 ; Y
.dw 96 ; W
.dw 96 ; H
.dw STYLE_WIN_FOREGROUND ; front color