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:
Axel Dörfler
2005-11-04 13:27:41 +00:00
parent 0f6436373e
commit 962b688433
+1 -8
View File
@@ -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();
}