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<