mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
rust: update to new set_{fg,bg}_rgb()
This commit is contained in:
parent
1e99a2a202
commit
7e74d96792
@ -309,7 +309,7 @@ impl NcPlane {
|
|||||||
pub fn set_fg_rgb8(&mut self, red: NcComponent, green: NcComponent, blue: NcComponent) {
|
pub fn set_fg_rgb8(&mut self, red: NcComponent, green: NcComponent, blue: NcComponent) {
|
||||||
unsafe {
|
unsafe {
|
||||||
// Can't fail because of type enforcing.
|
// Can't fail because of type enforcing.
|
||||||
let _ = crate::ncplane_set_fg_rgb8(self, red as i32, green as i32, blue as i32);
|
let _ = crate::ncplane_set_fg_rgb8(self, red as u32, green as u32, blue as u32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ impl NcPlane {
|
|||||||
pub fn set_bg_rgb8(&mut self, red: NcComponent, green: NcComponent, blue: NcComponent) {
|
pub fn set_bg_rgb8(&mut self, red: NcComponent, green: NcComponent, blue: NcComponent) {
|
||||||
unsafe {
|
unsafe {
|
||||||
// Can't fail because of type enforcing.
|
// Can't fail because of type enforcing.
|
||||||
let _ = crate::ncplane_set_bg_rgb8(self, red as i32, green as i32, blue as i32);
|
let _ = crate::ncplane_set_bg_rgb8(self, red as u32, green as u32, blue as u32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user