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
|
float
|
||||||
Layer::Scale() const
|
Layer::Scale() const
|
||||||
{
|
{
|
||||||
float scale = 1.0f;
|
return CurrentState()->Scale();
|
||||||
|
|
||||||
DrawState* layerData = fDrawState;
|
|
||||||
do {
|
|
||||||
scale *= layerData->Scale();
|
|
||||||
} while ((layerData = layerData->PreviousState()) != NULL);
|
|
||||||
|
|
||||||
return scale;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user