Force a Sync() in DrawPicture() instead of expecting a reply. Looks more correct

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15815 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-01-03 12:41:56 +00:00
parent 0de2f00de7
commit a1a73d28be
1 changed files with 3 additions and 27 deletions

View File

@ -3126,15 +3126,7 @@ BView::DrawPicture(const BPicture *picture)
return;
DrawPictureAsync(picture, PenLocation());
fOwner->fLink->Attach<int32>(B_OK);
// ToDo: why a reply?
int32 code;
if (fOwner->fLink->FlushWithReply(code) == B_OK
&& code == B_OK) {
status_t err;
fOwner->fLink->Read<int32>(&err);
}
Sync();
}
@ -3145,15 +3137,7 @@ BView::DrawPicture(const BPicture *picture, BPoint where)
return;
DrawPictureAsync(picture, where);
fOwner->fLink->Attach<int32>(B_OK);
// ToDo: why a reply?
int32 code;
if (fOwner->fLink->FlushWithReply(code) == B_OK
&& code == B_OK) {
status_t err;
fOwner->fLink->Read<int32>(&err);
}
Sync();
}
@ -3164,15 +3148,7 @@ BView::DrawPicture(const char *filename, long offset, BPoint where)
return;
DrawPictureAsync(filename, offset, where);
fOwner->fLink->Attach<int32>(B_OK);
// ToDo: why a reply?
int32 code;
if (fOwner->fLink->FlushWithReply(code) == B_OK
&& code == B_OK) {
status_t err;
fOwner->fLink->Read<int32>(&err);
}
Sync();
}