mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-23 11:28:28 +00:00
Remove redundant as_slice call per PR feedback
This commit is contained in:
parent
416272a48a
commit
e25e51d3fc
@ -545,7 +545,7 @@ impl<'ui> Polyline<'ui> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
sys::ImDrawList_AddConvexPolyFilled(
|
sys::ImDrawList_AddConvexPolyFilled(
|
||||||
self.draw_list.draw_list,
|
self.draw_list.draw_list,
|
||||||
self.points.as_slice().as_ptr() as *const sys::ImVec2,
|
self.points.as_ptr() as *const sys::ImVec2,
|
||||||
self.points.len() as i32,
|
self.points.len() as i32,
|
||||||
self.color.into(),
|
self.color.into(),
|
||||||
)
|
)
|
||||||
@ -554,7 +554,7 @@ impl<'ui> Polyline<'ui> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
sys::ImDrawList_AddPolyline(
|
sys::ImDrawList_AddPolyline(
|
||||||
self.draw_list.draw_list,
|
self.draw_list.draw_list,
|
||||||
self.points.as_slice().as_ptr() as *const sys::ImVec2,
|
self.points.as_ptr() as *const sys::ImVec2,
|
||||||
self.points.len() as i32,
|
self.points.len() as i32,
|
||||||
self.color.into(),
|
self.color.into(),
|
||||||
sys::ImDrawFlags::default(),
|
sys::ImDrawFlags::default(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user