diff options
author | Akshay <[email protected]> | 2021-03-17 12:22:11 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-03-17 12:22:11 +0000 |
commit | 83732aed1a41a713cd8790fcebae90aabe78b789 (patch) | |
tree | dfa7bd4928e31704c81336263c46b8bc5f153987 /src/utils.rs | |
parent | 8017f92785f936721cfc4bfa675859dc9aaf649e (diff) |
read and write to .obi files
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index e36a8cc..a1b3624 100644 --- a/src/utils.rs +++ b/src/utils.rs | |||
@@ -14,7 +14,7 @@ pub fn draw_text<S: AsRef<str>>( | |||
14 | text: S, | 14 | text: S, |
15 | color: Color, | 15 | color: Color, |
16 | (x, y): (u32, u32), | 16 | (x, y): (u32, u32), |
17 | ) { | 17 | ) -> u32 { |
18 | let text = text.as_ref(); | 18 | let text = text.as_ref(); |
19 | let texture_creator = canvas.texture_creator(); | 19 | let texture_creator = canvas.texture_creator(); |
20 | let mut font = ttf_context.load_font(FONT_PATH, 17).unwrap(); | 20 | let mut font = ttf_context.load_font(FONT_PATH, 17).unwrap(); |