minor fixes
@@ -256,7 +256,7 @@ class Text extends Drawable {
if( cc == '\n'.code ) {
if( x > xMax ) xMax = x;
- if( calcLines ) lines.push(Std.int(x));
+ if( calcLines ) lines.push(Math.ceil(x));
switch( align ) {
case Left:
x = 0;
@@ -275,7 +275,7 @@ class Text extends Drawable {
prevChar = cc;
}
calcXMin = xMin;
@@ -27,7 +27,7 @@ class Tile {
inline function get_iwidth() return Math.ceil(width + x) - ix;
public var iheight(get,never) : Int;
- inline function get_iheight() return Std.ceil(height + y) - iy;
+ inline function get_iheight() return Math.ceil(height + y) - iy;
function new(tex : h3d.mat.Texture, x : Float, y : Float, w : Float, h : Float, dx : Float=0, dy : Float=0) {
this.innerTex = tex;