mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
graphics-server: fix to change in send_message syntax
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
9010c07fe1
commit
4a8590d336
1 changed files with 5 additions and 5 deletions
|
|
@ -6,21 +6,21 @@ pub use api::{Point, Color};
|
||||||
use xous::{try_send_message, CID};
|
use xous::{try_send_message, CID};
|
||||||
|
|
||||||
pub fn draw_line(cid: CID, start: Point, end: Point) -> Result<(), xous::Error> {
|
pub fn draw_line(cid: CID, start: Point, end: Point) -> Result<(), xous::Error> {
|
||||||
try_send_message(cid, api::Opcode::Line(start, end).into())
|
try_send_message(cid, api::Opcode::Line(start, end).into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw_circle(cid: CID, center: Point, radius: u32) -> Result<(), xous::Error> {
|
pub fn draw_circle(cid: CID, center: Point, radius: u32) -> Result<(), xous::Error> {
|
||||||
try_send_message(cid, api::Opcode::Circle(center, radius).into())
|
try_send_message(cid, api::Opcode::Circle(center, radius).into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw_rectangle(cid: CID, start: Point, end: Point) -> Result<(), xous::Error> {
|
pub fn draw_rectangle(cid: CID, start: Point, end: Point) -> Result<(), xous::Error> {
|
||||||
try_send_message(cid, api::Opcode::Rectangle(start, end).into())
|
try_send_message(cid, api::Opcode::Rectangle(start, end).into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_style(cid: CID, width: u32, stroke: Color, fill: Color) -> Result<(), xous::Error> {
|
pub fn set_style(cid: CID, width: u32, stroke: Color, fill: Color) -> Result<(), xous::Error> {
|
||||||
try_send_message(cid, api::Opcode::Style(width, stroke, fill).into())
|
try_send_message(cid, api::Opcode::Style(width, stroke, fill).into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn flush(cid: CID) -> Result<(), xous::Error> {
|
pub fn flush(cid: CID) -> Result<(), xous::Error> {
|
||||||
try_send_message(cid, api::Opcode::Flush.into())
|
try_send_message(cid, api::Opcode::Flush.into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue