From b0507f43b66c37685168bbdf9db65cb5575aa167 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 21 Mar 2017 17:10:38 -0700 Subject: [PATCH] Fix doc generation --- lime/graphics/Image.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lime/graphics/Image.hx b/lime/graphics/Image.hx index 2bb9f1d37..ac1b7f2a1 100644 --- a/lime/graphics/Image.hx +++ b/lime/graphics/Image.hx @@ -27,7 +27,9 @@ import lime.utils.ArrayBuffer; import lime.utils.UInt8Array; #if (js && html5) +#if !display import lime._backend.html5.HTML5HTTPRequest; +#end import js.html.CanvasElement; import js.html.ImageElement; import js.html.Image in JSImage; @@ -74,7 +76,7 @@ import lime.graphics.console.TextureData; @:access(lime.math.Rectangle) @:access(lime.math.Vector2) -#if (js && html5) +#if (js && html5 && !display) @:access(lime._backend.html5.HTML5HTTPRequest) #end @@ -749,7 +751,7 @@ class Image { if (base64 == null || type == null) return Future.withValue (null); - #if (js && html5) + #if (js && html5 && !display) return HTML5HTTPRequest.loadImage ("data:" + type + ";base64," + base64); @@ -831,7 +833,7 @@ class Image { if (path == null) return Future.withValue (null); - #if (js && html5) + #if (js && html5 && !display) return HTML5HTTPRequest.loadImage (path);