From ebb20150ca259e458e90e387d14075e8e39d7a7e Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 19 Jan 2026 18:34:56 +0100 Subject: [PATCH] ImageView: handle PRESSED flag. needed when used as button. --- avr/modules/lcd2/gui2/imageview.asm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/avr/modules/lcd2/gui2/imageview.asm b/avr/modules/lcd2/gui2/imageview.asm index c5818ce..6e220af 100644 --- a/avr/modules/lcd2/gui2/imageview.asm +++ b/avr/modules/lcd2/gui2/imageview.asm @@ -104,6 +104,10 @@ ImageView_OnDraw: ; rcall Widget_Clear + adiw zh:zl, WIDGET_OFFS_OPTS_LO + lpm r14, Z + sbiw zh:zl, WIDGET_OFFS_OPTS_LO + push zl push zh ; get ressource id @@ -122,17 +126,39 @@ ImageView_OnDraw: brcc ImageView_OnDraw_done ; get background color + ldd r16, Y+WIDGET_SD_OFFS_FLAGS + andi r16, (1<