mirror of https://github.com/adamdruppe/arsd.git
lol example should use more realistic numbers
This commit is contained in:
parent
03983378bd
commit
121b59ddf0
4
svg.d
4
svg.d
|
@ -61,8 +61,8 @@
|
||||||
// Load
|
// Load
|
||||||
NSVG* image = nsvgParseFromFile("test.svg", "px", 96);
|
NSVG* image = nsvgParseFromFile("test.svg", "px", 96);
|
||||||
|
|
||||||
int w = 200;
|
int w = cast(int) image.width;
|
||||||
int h = 200;
|
int h = cast(int) image.height;
|
||||||
|
|
||||||
NSVGrasterizer rast = nsvgCreateRasterizer();
|
NSVGrasterizer rast = nsvgCreateRasterizer();
|
||||||
// Allocate memory for image
|
// Allocate memory for image
|
||||||
|
|
Loading…
Reference in New Issue