mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 749118 - Translate the source correctly in RasterImage::CopyFrame. r=joe
This commit is contained in:
parent
15509fccd0
commit
ede138b390
@ -851,8 +851,9 @@ RasterImage::CopyFrame(PRUint32 aWhichFrame,
|
||||
gfxASurface::ImageFormatARGB32);
|
||||
gfxContext ctx(imgsurface);
|
||||
ctx.SetOperator(gfxContext::OPERATOR_SOURCE);
|
||||
ctx.SetPattern(pattern);
|
||||
ctx.Rectangle(framerect);
|
||||
ctx.Translate(framerect.TopLeft());
|
||||
ctx.SetPattern(pattern);
|
||||
ctx.Fill();
|
||||
|
||||
*_retval = imgsurface.forget().get();
|
||||
|
Loading…
Reference in New Issue
Block a user