Don't prevent shapes from being rendered when the global
icon scale is larger than the maximum visibility scale of 4.0f. This just means you cannot prevent shapes from rendering in icons rendered larger than 256x256. visibility scale is 4.0 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41206 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -347,10 +347,14 @@ IconRenderer::_Render(const BRect& r)
|
|||||||
for (int32 i = 0; i < shapeCount; i++) {
|
for (int32 i = 0; i < shapeCount; i++) {
|
||||||
Shape* shape = fIcon->Shapes()->ShapeAtFast(i);
|
Shape* shape = fIcon->Shapes()->ShapeAtFast(i);
|
||||||
|
|
||||||
// don't render shape if the Level Of Detail falls out of range
|
// Don't render shape if the Level Of Detail falls out of range.
|
||||||
|
// That's unless the scale is bigger than the maximum
|
||||||
|
// MaxVisibilityScale of 4.0f.
|
||||||
if (fGlobalTransform.scale() < shape->MinVisibilityScale()
|
if (fGlobalTransform.scale() < shape->MinVisibilityScale()
|
||||||
|| fGlobalTransform.scale() > shape->MaxVisibilityScale())
|
|| (fGlobalTransform.scale() > shape->MaxVisibilityScale()
|
||||||
|
&& shape->MaxVisibilityScale() < 4.0f)) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Transformation transform(*shape);
|
Transformation transform(*shape);
|
||||||
transform.multiply(fGlobalTransform);
|
transform.multiply(fGlobalTransform);
|
||||||
|
|||||||
Reference in New Issue
Block a user