From 4c1933414cbd2c3e4ac00a4a12ca6766fe07e715 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 23 May 2025 10:54:55 +0800 Subject: [PATCH] fix off-by-one error in clip rect definition --- libs/ux-api/src/minigfx/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ux-api/src/minigfx/handlers.rs b/libs/ux-api/src/minigfx/handlers.rs index 8ee397ddf..bba13f3e9 100644 --- a/libs/ux-api/src/minigfx/handlers.rs +++ b/libs/ux-api/src/minigfx/handlers.rs @@ -196,7 +196,7 @@ pub fn draw_text_view(display: &mut T, msg: &mut xous::envelope: if tv.clip_rect.is_none() { 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())); + tv.clip_rect = Some(Rectangle::new(Point::new(0, 0), display.dimensions() - Point::new(1, 1))); } else { return; }