Archive the 2 pictures to a message, in order to compare the data.

Currently Archiving the Unflattened picture doesn't work, and it hangs 
inside assert_local_copy(), waiting for the app_server reply...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20280 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-03-01 13:19:05 +00:00
parent 5eb9da355a
commit ccfc8a3dcb
@@ -109,12 +109,21 @@ PictureView::AllAttached()
DrawStuff(this);
BPicture *picture = EndPicture();
if (picture == NULL)
return;
BMessage message;
picture->Archive(&message);
message.PrintToStream();
BMallocIO stream;
status_t status = picture->Flatten(&stream);
delete picture;
if (status != B_OK)
printf("Error flattening BPicture: %s\n", strerror(status));
if (status == B_OK) {
stream.Seek(0, SEEK_SET);
fPicture = new BPicture();
@@ -123,7 +132,9 @@ PictureView::AllAttached()
printf("Error unflattening BPicture: %s\n", strerror(status));
}
delete picture;
BMessage message2;
//fPicture->Archive(&message2);
message2.PrintToStream();
}
void