maraiah: fix invalid indices on rgb8 pixmaps

master
an 2019-07-01 01:19:00 -04:00
parent e6bc793861
commit 5edec0bc88
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@ pub fn read(mut im: Image8,
p += pp;
for x in 0..im.w() {
let r = d[x + im.w()];
let g = d[x + im.w() * 2];
let b = d[x + im.w() * 3];
let r = d[x];
let g = d[x * 2];
let b = d[x * 3];
im.cr.push(Color8::new(r, g, b));
}
}