Add back moving the pen to origin in BControlLook arrow drawing.

Removing this did not affect scrollbar arrow buttons, but made the
arrows disappear on the Deskbar.

Clearly, BControlLook cannot be changed without extensive testing.
This commit is contained in:
Ryan Leavengood 2013-03-03 23:10:51 -05:00
parent dca92a6c75
commit f44a56ca9a

View File

@ -777,6 +777,8 @@ BControlLook::DrawArrowShape(BView* view, BRect& rect, const BRect& updateRect,
float penSize = view->PenSize();
drawing_mode mode = view->DrawingMode();
view->MovePenTo(BPoint(0, 0));
view->SetPenSize(ceilf(hInset / 2.0));
view->SetDrawingMode(B_OP_OVER);
view->StrokeShape(&arrowShape);