From af02a9a71c76168c0e93532aa6d2bb668710b443 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 10 Sep 2007 09:43:02 +0000 Subject: [PATCH] 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 --- src/servers/app/ServerPicture.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/servers/app/ServerPicture.cpp b/src/servers/app/ServerPicture.cpp index 8cca58f7f2..55a1e07a20 100644 --- a/src/servers/app/ServerPicture.cpp +++ b/src/servers/app/ServerPicture.cpp @@ -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 ? }