From 121b59ddf0acadc4515c53c0a4c1748622aa529e Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 30 Jul 2024 21:50:10 -0400 Subject: [PATCH] lol example should use more realistic numbers --- svg.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svg.d b/svg.d index a91f25d..affc28d 100644 --- a/svg.d +++ b/svg.d @@ -61,8 +61,8 @@ // Load NSVG* image = nsvgParseFromFile("test.svg", "px", 96); - int w = 200; - int h = 200; + int w = cast(int) image.width; + int h = cast(int) image.height; NSVGrasterizer rast = nsvgCreateRasterizer(); // Allocate memory for image