Commit 8c36b0cf authored by robbycerantola's avatar robbycerantola

image_opaque() non-transparent method

parent 4b86b5a6
......@@ -15,7 +15,7 @@ keywords = [
[dependencies]
time = "*"
rayon = "0.5.0"
rayon = "1.0"
[features]
default = []
......
......@@ -346,9 +346,9 @@ pub trait Renderer {
//copy image slices to window line by line
for l in 0..h {
let start = offset + l * width;
let mut stop = offset + l * width + w;
let mut stop = start + w;
let begin = l * w;
let mut end = l * w + w;
let mut end = begin + w;
//check boundaries
if start_x + w > width {
stop = (start_y + l +1) * width - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment