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