We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9613a5a + 8098ff6 commit 98e2351Copy full SHA for 98e2351
plotters-backend/src/lib.rs
@@ -308,9 +308,9 @@ pub trait DrawingBackend: Sized {
308
break;
309
}
310
// FIXME: This assume we have RGB image buffer
311
- let r = src[(dx + dy * w) as usize * 3];
312
- let g = src[(dx + dy * w) as usize * 3 + 1];
313
- let b = src[(dx + dy * w) as usize * 3 + 2];
+ let r = src[(dx + dy * iw) as usize * 3];
+ let g = src[(dx + dy * iw) as usize * 3 + 1];
+ let b = src[(dx + dy * iw) as usize * 3 + 2];
314
let color = BackendColor {
315
alpha: 1.0,
316
rgb: (r, g, b),
0 commit comments