Fix getImageData with sizes < 1 pixel

This commit is contained in:
David Zbarsky 2015-08-04 17:14:15 -04:00
parent 0a8ea98183
commit 2f47bdff4b
4 changed files with 27 additions and 34 deletions

View file

@ -88,7 +88,7 @@ pub enum Canvas2dMsg {
ClosePath,
Fill,
FillRect(Rect<f32>),
GetImageData(Rect<f64>, Size2D<f64>, IpcSender<Vec<u8>>),
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
LineTo(Point2D<f32>),
MoveTo(Point2D<f32>),
PutImageData(Vec<u8>, Rect<f64>, Option<Rect<f64>>),