gui2: create root window

This commit is contained in:
Martin Preuss
2026-03-07 01:51:40 +01:00
parent ffde6b0ddb
commit ef3ed9df12
2 changed files with 40 additions and 26 deletions

View File

@@ -88,9 +88,27 @@ GuiApp_Init:
ldi r16, HIGH(GuiApp_DefaultSignalmap*2)
std Y+OBJECT_OFFS_SIGNALMAP_HI, r16
; create root window
push yl
push yh
mov xl, yl
mov xh, yh
ldi r16, 0 ; opts_lo
ldi r17, 0 ; opts_hi
bigcall RootWindow_new
mov xl, yl
mov xh, yh
pop yh
pop yl
brcc GuiApp_Init_ret
std Y+GUIAPP_OFFS_ROOTWINDOW_LO, xl
std Y+GUIAPP_OFFS_ROOTWINDOW_HI, xh
ldi r16, GUIAPP_DRAWTIMER
std Y+GUIAPP_OFFS_DRAWTIMER, r16
GuiApp_Init_ret:
ret
; @end