mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix off-by-one error in clip rect definition
This commit is contained in:
parent
0f7ad13c08
commit
4c1933414c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 tv.clip_rect.is_none() {
|
||||||
if cfg!(feature = "hosted-baosec") || cfg!(feature = "cramium-soc") || cfg!(feature = "board-baosec")
|
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 {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue