Use DrawState::PenSize() to set the drawing engine pen size, since it

returns the scaled value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-09-10 09:43:02 +00:00
parent cff9bca41c
commit af02a9a71c
+5 -1
View File
@@ -541,7 +541,9 @@ static void
set_pen_size(ViewLayer *view, float size)
{
view->CurrentState()->SetPenSize(size);
view->Window()->GetDrawingEngine()->SetPenSize(size);
view->Window()->GetDrawingEngine()->SetPenSize(view->CurrentState()->PenSize());
// DrawState::PenSize() returns the scaled pen size, so we need to
// use that value to set the drawing engine pen size.
}
@@ -576,6 +578,8 @@ set_scale(ViewLayer *view, float scale)
// the DrawingEngine/Painter does not need to be updated, since this
// effects only the view->screen coord conversion, which is handled
// by the view only
// TODO: (JackBurton) What about the pen size ? Since it depends on the scale,
// Don't we need to tell the drawing engine about it ?
}