fix this copy-paste job
This commit is contained in:
parent
bea7a6aa4e
commit
e547cd341f
|
@ -315,7 +315,7 @@ fn test_image_from_string() {
|
|||
fn image_to_string(image: Image) -> String {
|
||||
let mut string = String::new();
|
||||
|
||||
let sqrt = (room.tiles.len() as f64).sqrt() as usize; // 8 for SD, 16 for HD
|
||||
let sqrt = (image.pixels.len() as f64).sqrt() as usize; // 8 for SD, 16 for HD
|
||||
for line in image.pixels.chunks(sqrt) {
|
||||
for pixel in line {
|
||||
string.push_str(&format!("{}", *pixel));
|
||||
|
|
Loading…
Reference in New Issue