be sure to erase complete (i.e. before the softclip)

git-svn-id: http://skia.googlecode.com/svn/trunk@2558 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
mike@reedtribe.org 2011-10-30 17:06:24 +00:00
parent 8c0f3d8047
commit 6151d1d4f0

View File

@ -70,11 +70,10 @@ static void* draw_proc(void* context) {
// this must be local to the loop, since it needs to forget the pixels
// its writing to after each iteration, since we do the swap
SkCanvas canvas(update.bitmap());
canvas.clipRect(clipR, SkRegion::kIntersect_Op, true);
canvas.clipRegion(update.dirty());
canvas.drawColor(0, SkXfermode::kClear_Mode);
canvas.clipRect(clipR, SkRegion::kIntersect_Op, true);
canvas.drawOval(oval, paint);
}
bounce(&x, &dx, WIDTH-OVALW);