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:
@@ -109,12 +109,21 @@ PictureView::AllAttached()
|
|||||||
DrawStuff(this);
|
DrawStuff(this);
|
||||||
|
|
||||||
BPicture *picture = EndPicture();
|
BPicture *picture = EndPicture();
|
||||||
|
if (picture == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
BMessage message;
|
||||||
|
picture->Archive(&message);
|
||||||
|
message.PrintToStream();
|
||||||
|
|
||||||
BMallocIO stream;
|
BMallocIO stream;
|
||||||
|
|
||||||
status_t status = picture->Flatten(&stream);
|
status_t status = picture->Flatten(&stream);
|
||||||
|
delete picture;
|
||||||
|
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
printf("Error flattening BPicture: %s\n", strerror(status));
|
printf("Error flattening BPicture: %s\n", strerror(status));
|
||||||
|
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
stream.Seek(0, SEEK_SET);
|
stream.Seek(0, SEEK_SET);
|
||||||
fPicture = new BPicture();
|
fPicture = new BPicture();
|
||||||
@@ -123,7 +132,9 @@ PictureView::AllAttached()
|
|||||||
printf("Error unflattening BPicture: %s\n", strerror(status));
|
printf("Error unflattening BPicture: %s\n", strerror(status));
|
||||||
}
|
}
|
||||||
|
|
||||||
delete picture;
|
BMessage message2;
|
||||||
|
//fPicture->Archive(&message2);
|
||||||
|
message2.PrintToStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user