From a1a73d28be155455b147ea8cc05d8b33e779aa12 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 3 Jan 2006 12:41:56 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index ad3e51360a..a8a59668f7 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -3126,15 +3126,7 @@ BView::DrawPicture(const BPicture *picture) return; DrawPictureAsync(picture, PenLocation()); - fOwner->fLink->Attach(B_OK); - - // ToDo: why a reply? - int32 code; - if (fOwner->fLink->FlushWithReply(code) == B_OK - && code == B_OK) { - status_t err; - fOwner->fLink->Read(&err); - } + Sync(); } @@ -3145,15 +3137,7 @@ BView::DrawPicture(const BPicture *picture, BPoint where) return; DrawPictureAsync(picture, where); - fOwner->fLink->Attach(B_OK); - - // ToDo: why a reply? - int32 code; - if (fOwner->fLink->FlushWithReply(code) == B_OK - && code == B_OK) { - status_t err; - fOwner->fLink->Read(&err); - } + Sync(); } @@ -3164,15 +3148,7 @@ BView::DrawPicture(const char *filename, long offset, BPoint where) return; DrawPictureAsync(filename, offset, where); - fOwner->fLink->Attach(B_OK); - - // ToDo: why a reply? - int32 code; - if (fOwner->fLink->FlushWithReply(code) == B_OK - && code == B_OK) { - status_t err; - fOwner->fLink->Read(&err); - } + Sync(); }