From 39b3d4d174ae83047fac2b86cc7203dc71789adb Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 11 May 2026 00:42:42 +0200 Subject: [PATCH] gui: adapt to latest changes. need to work on other MainWindow derivates next. --- avr/devices/c03/main/w_menu.asm | 113 ++++++++++++++--- avr/modules/lcd2/gui/aqhome/d_light_conns.asm | 120 +++++++++++++++--- avr/modules/lcd2/gui/aqhome/d_nodevalueid.asm | 110 +++++++++++++--- 3 files changed, 288 insertions(+), 55 deletions(-) diff --git a/avr/devices/c03/main/w_menu.asm b/avr/devices/c03/main/w_menu.asm index 1d0e007..863ccd9 100644 --- a/avr/devices/c03/main/w_menu.asm +++ b/avr/devices/c03/main/w_menu.asm @@ -54,12 +54,31 @@ MenuWin_new: mov xl, r18 ; use root window as parent for main window mov xh, r19 + ldi r24, LOW(DLGLIGHTCONNS_SIZE) + ldi r25, HIGH(DLGLIGHTCONNS_SIZE) + bigcall Object_Alloc ; Y=space (!r16, !r17, !X) + brcc MenuWin_new_ret + rcall MenuWin_Init +MenuWin_new_ret: + ret +; @end + + + +; --------------------------------------------------------------------------- +; @routine MenuWin_new @global +; +; @param Y pointer to new MainWindow +; @param X parent widget +; @return CFLAG set of okay, cleared otherwise + +MenuWin_Init: ldi r16, 0 ; OPTS ldi r17, (WIDGET_PACK_FILLED<