From 05ac62ef54f6af196e6693cc00b5d388b144eb8a Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 9 Feb 2026 19:05:50 +0100 Subject: [PATCH] formatting. --- avr/devices/c03/main/g_win_climate.asm | 740 ++++++++++++------------- 1 file changed, 370 insertions(+), 370 deletions(-) diff --git a/avr/devices/c03/main/g_win_climate.asm b/avr/devices/c03/main/g_win_climate.asm index c59045a..f3f8f8e 100644 --- a/avr/devices/c03/main/g_win_climate.asm +++ b/avr/devices/c03/main/g_win_climate.asm @@ -101,8 +101,8 @@ winClimate: .dw winClimate_ramdata ; ptr to SDRAM winClimate_signalmap: - .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) - .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) + .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) + .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDrawNop), HIGH(Widget_OnDrawNop) .db 0, 0, 0, 0 ; end of table @@ -134,383 +134,113 @@ winClimate_signalmap: - winClimateBody: + winClimateBody: + ; OBJECT + .db 0x55, 0xaa ; magic + .dw 0 ; next + .dw winClimate*2 ; parent + .dw winClimateSensor1*2 ; first child + .dw 0 ; target + .dw 0 ; selector (ony lower 8 bits used) + .dw winClimateBody_signalmap*2 ; signal map + ; WIDGET + .db 0, 0 ; opts lo, hi + .dw 0 ; X + .dw STYLE_WIN_TITLE_HEIGHT ; Y + .dw DISPLAY_WIDTH ; W + .dw DISPLAY_HEIGHT-STYLE_WIN_TITLE_HEIGHT ; H + .dw STYLE_WIN_FOREGROUND ; front color + ; .dw DISPLAY_COLOR_YELLOW + .dw STYLE_WIN_BACKGROUND ; back color + .dw STYLE_WIN_FONT*2 ; font + .dw winClimateBody_ramdata ; ptr to SDRAM + + winClimateBody_signalmap: + .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) + .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) + .db 0, 0, 0, 0 ; end of table + + + + winClimateSensor1: ; OBJECT - .db 0x55, 0xaa ; magic - .dw 0 ; next - .dw winClimate*2 ; parent - .dw winClimateSensor1*2 ; first child - .dw 0 ; target - .dw 0 ; selector (ony lower 8 bits used) - .dw winClimateBody_signalmap*2 ; signal map + .db 0x55, 0xaa ; magic + .dw winClimateSensor2*2 ; next + .dw winClimateBody*2 ; parent + .dw winClimateSensor1Title*2 ; first child + .dw 0 ; target + .dw 0 ; selector (ony lower 8 bits used) + .dw SensorWatch_DefaultSignalmap*2 ; signal map ; WIDGET - .db 0, 0 ; opts lo, hi - .dw 0 ; X - .dw STYLE_WIN_TITLE_HEIGHT ; Y - .dw DISPLAY_WIDTH ; W - .dw DISPLAY_HEIGHT-STYLE_WIN_TITLE_HEIGHT ; H - .dw STYLE_WIN_FOREGROUND ; front color - ; .dw DISPLAY_COLOR_YELLOW - .dw STYLE_WIN_BACKGROUND ; back color - .dw STYLE_WIN_FONT*2 ; font - .dw winClimateBody_ramdata ; ptr to SDRAM - - winClimateBody_signalmap: - .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) - .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) - .db 0, 0, 0, 0 ; end of table + .db (1<