diff --git a/Frameworks/CoreGraphics/CGPattern.mm b/Frameworks/CoreGraphics/CGPattern.mm index 88d416fb50..51e0aa9575 100644 --- a/Frameworks/CoreGraphics/CGPattern.mm +++ b/Frameworks/CoreGraphics/CGPattern.mm @@ -39,8 +39,8 @@ - (CGImageRef)getPatternImage { return simpleImage; } - float width = bounds.size.width; - float height = bounds.size.height; + float width = xStep; + float height = yStep; if (width <= 0.0f || height <= 0.0f) { return nullptr;