From e8991ce3ac6f6b9e9efa5876969f58ccab38563f Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Tue, 10 Jun 2008 18:42:47 +0000 Subject: [PATCH] * fill the view with it's high color, BPrintJob behaves now like on R5 fixes printing from e.g Scooby (missing header color) finally found the missing peace here: http://www.freelists.org/archives/haiku-development/06-2008/msg00086.html thanks Stephan :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25909 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/PrintJob.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/kits/interface/PrintJob.cpp b/src/kits/interface/PrintJob.cpp index 28f6849b3f..6cf6eecdf1 100644 --- a/src/kits/interface/PrintJob.cpp +++ b/src/kits/interface/PrintJob.cpp @@ -665,6 +665,14 @@ BPrintJob::_RecurseView(BView *view, BPoint origin, BPicture *picture, view->PushState(); view->SetOrigin(origin); view->ConstrainClippingRegion(®ion); + + if (view->ViewColor() != B_TRANSPARENT_COLOR) { + rgb_color highColor = view->HighColor(); + view->SetHighColor(view->ViewColor()); + view->FillRect(rect); + view->SetHighColor(highColor); + } + view->Draw(rect); view->PopState(); view->fIsPrinting = false;