fix off-by-one error in clip rect definition

This commit is contained in:
bunnie 2025-05-23 10:54:55 +08:00
parent 0f7ad13c08
commit 4c1933414c

View file

@ -196,7 +196,7 @@ pub fn draw_text_view<T: FrameBuffer>(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;
}