From b1ce74faa0509ddc08bb0b2b469a83874466623f Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 3 Mar 2025 02:10:50 +0800 Subject: [PATCH] add handler for unspecified clipping areas in v2 targets --- libs/ux-api/src/minigfx/handlers.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ux-api/src/minigfx/handlers.rs b/libs/ux-api/src/minigfx/handlers.rs index e73a39293..2e5123e9c 100644 --- a/libs/ux-api/src/minigfx/handlers.rs +++ b/libs/ux-api/src/minigfx/handlers.rs @@ -166,7 +166,12 @@ pub fn draw_text_view(display: &mut T, msg: &mut xous::envelope: let mut tv = buffer.to_original::().unwrap(); if tv.clip_rect.is_none() { - return; + if cfg!(feature = "hosted-baosec") || cfg!(feature = "cramium-soc") || cfg!(feature = "board-baosec") + { + tv.clip_rect = Some(Rectangle::new(Point::new(0, 0), display.dimensions())); + } else { + return; + } } // if no clipping rectangle is specified, nothing to draw // this is the clipping rectangle of the canvas in screen coordinates