mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
fix return calls to use scalar5 instead of scalar2
This commit is contained in:
parent
4096b35fef
commit
f5473868b1
1 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ impl Gfx {
|
|||
Message::new_blocking_scalar(GfxOpcode::ScreenSize.to_usize().unwrap(), 0, 0, 0, 0),
|
||||
)
|
||||
.expect("ScreenSize message failed");
|
||||
if let xous::Result::Scalar2(x, y) = response {
|
||||
if let xous::Result::Scalar5(_, x, y, _, _) = response {
|
||||
Ok(Point::new(x as _, y as _))
|
||||
} else {
|
||||
panic!("unexpected return value: {:#?}", response);
|
||||
|
|
@ -262,7 +262,7 @@ impl Gfx {
|
|||
),
|
||||
)
|
||||
.expect("QueryGlyphProps failed");
|
||||
if let xous::Result::Scalar2(_, h) = response {
|
||||
if let xous::Result::Scalar5(_, _, h, _, _) = response {
|
||||
Ok(h)
|
||||
} else {
|
||||
panic!("unexpected return value: {:#?}", response);
|
||||
|
|
|
|||
Loading…
Reference in a new issue