mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix typo in image raster offset
We shouldn't plumb the "right" value into the y coordinate.
This commit is contained in:
parent
3a3f0d6c46
commit
dc498c912c
@ -84,7 +84,7 @@ skia::RefPtr<SkImage> RasterCache::GetPrerolledImage(GrContext* context,
|
||||
if (surface) {
|
||||
SkCanvas* canvas = surface->getCanvas();
|
||||
canvas->clear(SK_ColorTRANSPARENT);
|
||||
canvas->translate(-rect.left(), -rect.right());
|
||||
canvas->translate(-rect.left(), -rect.top());
|
||||
canvas->scale(scaleX, scaleY);
|
||||
canvas->drawPicture(picture);
|
||||
entry.image = skia::AdoptRef(surface->newImageSnapshot());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user