Fix compiler warnings
This commit is contained in:
@@ -4,7 +4,6 @@ mod screenshot;
|
||||
mod settings;
|
||||
mod state;
|
||||
|
||||
use std::io::Cursor;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Arc;
|
||||
|
||||
|
||||
@@ -403,7 +403,7 @@ mod ffi {
|
||||
let mut pixels: Vec<Pixel> = Vec::with_capacity((width * height) as usize);
|
||||
|
||||
for row_i in (0..height as usize).rev() {
|
||||
for byte_i in (0..width as usize) {
|
||||
for byte_i in 0..width as usize {
|
||||
let idx = row_i * row_len + byte_i * pixel_width;
|
||||
pixels.push(Pixel {
|
||||
b: data[idx],
|
||||
|
||||
Reference in New Issue
Block a user