aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 9859f39..6819e71 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -38,7 +38,7 @@ pub fn draw_text<S: AsRef<str>>(
38 ttf_context: &Sdl2TtfContext, 38 ttf_context: &Sdl2TtfContext,
39 text: S, 39 text: S,
40 color: Color, 40 color: Color,
41 (x, y): (u32, u32), 41 (x, y): (i32, i32),
42) -> u32 { 42) -> u32 {
43 let text = text.as_ref(); 43 let text = text.as_ref();
44 let texture_creator = canvas.texture_creator(); 44 let texture_creator = canvas.texture_creator();