* 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
This commit is contained in:
Karsten Heimrich 2008-06-10 18:42:47 +00:00
parent 8981fa5d54
commit e8991ce3ac

View File

@ -665,6 +665,14 @@ BPrintJob::_RecurseView(BView *view, BPoint origin, BPicture *picture,
view->PushState();
view->SetOrigin(origin);
view->ConstrainClippingRegion(&region);
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;