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:
parent
8c0f3d8047
commit
6151d1d4f0
@ -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.clipRegion(update.dirty());
|
||||
canvas.drawColor(0, SkXfermode::kClear_Mode);
|
||||
canvas.clipRect(clipR, SkRegion::kIntersect_Op, true);
|
||||
|
||||
canvas.clipRegion(update.dirty());
|
||||
|
||||
canvas.drawColor(0, SkXfermode::kClear_Mode);
|
||||
canvas.drawOval(oval, paint);
|
||||
}
|
||||
bounce(&x, &dx, WIDTH-OVALW);
|
||||
|
Loading…
Reference in New Issue
Block a user