summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/ggez/renderer/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ggez/renderer/text.rs b/examples/ggez/renderer/text.rs
index bfdedf74..db393873 100644
--- a/examples/ggez/renderer/text.rs
+++ b/examples/ggez/renderer/text.rs
@@ -72,7 +72,7 @@ impl text::Renderer<Color> for Renderer<'_> {
bounds: iced::Rectangle<f32>,
content: &str,
size: f32,
- color: Color,
+ color: Option<Color>,
horizontal_alignment: text::HorizontalAlignment,
_vertical_alignment: text::VerticalAlignment,
) {
@@ -101,7 +101,7 @@ impl text::Renderer<Color> for Renderer<'_> {
x: bounds.x,
y: bounds.y,
},
- Some(color),
+ color,
);
}
}