mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Fixed warning
This commit is contained in:
parent
e3b05aa0e7
commit
b1c94f28e9
|
@ -112,7 +112,7 @@ impl StatusText {
|
||||||
|
|
||||||
pub fn draw(&self, screen: &mut [u32], pos: (usize, usize), text: &str) {
|
pub fn draw(&self, screen: &mut [u32], pos: (usize, usize), text: &str) {
|
||||||
let mut x = pos.0;
|
let mut x = pos.0;
|
||||||
let mut y = pos.1;
|
let y = pos.1;
|
||||||
for c in text.chars() {
|
for c in text.chars() {
|
||||||
let mut index = c as usize - ' ' as usize;
|
let mut index = c as usize - ' ' as usize;
|
||||||
if index > MICROKNIGHT_LAYOUT.len() as usize {
|
if index > MICROKNIGHT_LAYOUT.len() as usize {
|
||||||
|
|
Loading…
Reference in a new issue