From 6b735e9aaba2f3d6d62380753bdc1c0df5de9e3d Mon Sep 17 00:00:00 2001 From: dbr Date: Thu, 25 Feb 2021 23:08:15 +1100 Subject: [PATCH] Somehow missed reverting the DrawList prefix from Triangle --- imgui/src/draw_list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imgui/src/draw_list.rs b/imgui/src/draw_list.rs index c5b6aa2..2d482c8 100644 --- a/imgui/src/draw_list.rs +++ b/imgui/src/draw_list.rs @@ -229,11 +229,11 @@ impl<'ui> DrawListMut<'ui> { p2: [f32; 2], p3: [f32; 2], c: C, - ) -> DrawListTriangle<'ui> + ) -> Triangle<'ui> where C: Into, { - DrawListTriangle::new(self, p1, p2, p3, c) + Triangle::new(self, p1, p2, p3, c) } /// Returns a circle with the given `center`, `radius` and `color`. @@ -502,7 +502,7 @@ impl<'ui> Rect<'ui> { /// Represents a triangle about to be drawn on the window #[must_use = "should call .build() to draw the object"] -pub struct DrawListTriangle<'ui> { +pub struct Triangle<'ui> { p1: [f32; 2], p2: [f32; 2], p3: [f32; 2], @@ -512,7 +512,7 @@ pub struct DrawListTriangle<'ui> { draw_list: &'ui DrawListMut<'ui>, } -impl<'ui> DrawListTriangle<'ui> { +impl<'ui> Triangle<'ui> { fn new(draw_list: &'ui DrawListMut, p1: [f32; 2], p2: [f32; 2], p3: [f32; 2], c: C) -> Self where C: Into,