gui2: main windows basically work now!

This commit is contained in:
Martin Preuss
2026-03-09 13:56:51 +01:00
parent e3ae1f9b35
commit cc7f2dc1db
6 changed files with 251 additions and 53 deletions

View File

@@ -236,6 +236,8 @@ vLayoutHorizontally:
; r23:r22=width of host widget
push yl
push yh
mov xl, yl
mov xh, yh
bigcall OBJ_GetFirstChild
vLayoutHorizontally_loop:
brcc vLayoutHorizontally_loopEnd
@@ -254,7 +256,13 @@ vLayoutHorizontally_loop:
vLayoutHorizontally_setWidth:
std Y+WIDGET_OFFS_WIDTH_LO, r12
std Y+WIDGET_OFFS_WIDTH_HI, r13
rcall Widget_PackSelfX ; R5:R4=new pos (r17, r18, r19, r20, r21)
push yl
push yh
mov yl, xl
mov yh, xh
rcall Widget_PackSelfX ; R5:R4=new pos (r17, r18, r19, r20, r21)
pop yh
pop yl
std Y+WIDGET_OFFS_X_LO, r4
std Y+WIDGET_OFFS_X_HI, r5
rcall OBJ_GetNext