Skip to content

Commit ea496ba

Browse files
committed
IconHelper: fix conditional compilation
Followup to commit 8cd89e1
1 parent 8cd89e1 commit ea496ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lime/tools/IconHelper.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ class IconHelper
351351
}
352352

353353
var extension = Path.extension(icon.path);
354-
var image:Image = null;
355354

356355
#if (lime && lime_cffi && !macro)
356+
var image:Image = null;
357357
switch (extension)
358358
{
359359
case "png", "jpg", "jpeg":
@@ -363,9 +363,10 @@ class IconHelper
363363
// image = ImageHelper.rasterizeSVG (null /*new SVG (File.getContent (icon.path))*/, width, height, backgroundColor);
364364
image = ImageHelper.rasterizeSVG(icon.path, width, height, backgroundColor);
365365
}
366-
#end
367-
368366
return image;
367+
#else
368+
return null;
369+
#end
369370
}
370371

371372
private static function packBits(data:Bytes, offset:Int, len:Int):Bytes

0 commit comments

Comments
 (0)