Js fixes
@@ -94,7 +94,7 @@ class Drawable extends Sprite {
}
public function getShader< T:hxsl.Shader >( stype : Class<T> ) : T {
- for( s in shaders )
+ if (shaders != null) for( s in shaders )
if( Std.is(s, stype) )
return cast s;
return null;
@@ -27,6 +27,7 @@ class Text extends Drawable {
this.font = font;
textAlign = Left;
letterSpacing = 1;
+ lineSpacing = 0;
text = "";
textColor = 0xFFFFFF;
@@ -185,4 +186,4 @@ class Text extends Drawable {
return c;
-}
+}