first simplistic implementation of drag bitmaps, drawing modes need more work, drawing text into offscreen bitmaps seems to be broken for some weird reason, B_OP_COPY actually copies the alpha value of the color as well
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15671 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1335,6 +1335,12 @@ BView::DragMessage(BMessage *message, BBitmap *image,
|
||||
fOwner->fLink->Attach<BPoint>(offset);
|
||||
fOwner->fLink->Attach<int32>(bufferSize);
|
||||
fOwner->fLink->Attach(buffer, bufferSize);
|
||||
|
||||
// we need to wait for the server
|
||||
// to actually process this message
|
||||
// before we can delete the bitmap
|
||||
int32 code;
|
||||
fOwner->fLink->FlushWithReply(code);
|
||||
|
||||
delete [] buffer;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user