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:
parent
0de2f00de7
commit
a1a73d28be
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue