BPicture: uncomment (and fix build) of the clip_to_picture method.
Does not seem to work, though. Change-Id: I309d8de79a71ab8e08f4ac2f2566080b67b84800
This commit is contained in:
@@ -475,22 +475,20 @@ static void
|
||||
clip_to_picture(void* _canvas, int32 pictureToken, const BPoint& where,
|
||||
bool clipToInverse)
|
||||
{
|
||||
/* TODO
|
||||
// TODO: Doesn't seem to work
|
||||
Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas);
|
||||
|
||||
ServerPicture* picture = canvas->GetPicture(pictureToken);
|
||||
if (picture == NULL)
|
||||
return;
|
||||
|
||||
AlphaMask* mask = new(std::nothrow) AlphaMask(
|
||||
picture, clipToInverse, where, *canvas->CurrentState());
|
||||
AlphaMask* mask = new(std::nothrow) PictureAlphaMask(canvas->GetAlphaMask(),
|
||||
picture, *canvas->CurrentState(), where, clipToInverse);
|
||||
canvas->SetAlphaMask(mask);
|
||||
canvas->UpdateCurrentDrawingRegion();
|
||||
if (mask != NULL)
|
||||
mask->ReleaseReference();
|
||||
|
||||
picture->ReleaseReference();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user