Forgot to update Layer::Scale(), too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14687 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1217,14 +1217,7 @@ Layer::BoundsOrigin() const
|
||||
float
|
||||
Layer::Scale() const
|
||||
{
|
||||
float scale = 1.0f;
|
||||
|
||||
DrawState* layerData = fDrawState;
|
||||
do {
|
||||
scale *= layerData->Scale();
|
||||
} while ((layerData = layerData->PreviousState()) != NULL);
|
||||
|
||||
return scale;
|
||||
return CurrentState()->Scale();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user