fix new gm to actually trigger the bug
git-svn-id: http://skia.googlecode.com/svn/trunk@8699 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d638233cbe
commit
0a6465949e
@ -16,7 +16,7 @@ static void make_bm(SkBitmap* bm) {
|
||||
SkCanvas canvas(*bm);
|
||||
SkPaint paint;
|
||||
paint.setStyle(SkPaint::kStroke_Style);
|
||||
canvas.drawRect(SkRect::MakeLTRB(0.5f, 0.5f, 29.5f, 29.5f), paint);
|
||||
canvas.drawRect(SkRect::MakeLTRB(0.5f, 0.5f, 59.5f, 59.5f), paint);
|
||||
}
|
||||
|
||||
// This creates a close, but imperfect concatenation of
|
||||
@ -33,7 +33,7 @@ static void test_bitmaprect(SkCanvas* canvas) {
|
||||
|
||||
canvas->drawBitmap(bm, 150, 45, NULL);
|
||||
|
||||
SkScalar scale = 0.452560018f;
|
||||
SkScalar scale = 0.472560018f;
|
||||
canvas->scale(scale, scale);
|
||||
canvas->drawBitmapRectToRect(bm, NULL, SkRect::MakeXYWH(100, 100, 128, 128), NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user