From 6af70e268643734bebcd35aa54e1f62a9f99a102 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Fri, 6 Oct 2017 14:35:31 +0200 Subject: [PATCH] pixi changes (before validation fork) --- haxe/ui/backend/TextDisplayBase.hx | 1 + haxe/ui/backend/pixi.config.xml | 18 ------------------ haxe/ui/backend/pixi/PixiStyleHelper.hx | 3 ++- 3 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 haxe/ui/backend/pixi.config.xml diff --git a/haxe/ui/backend/TextDisplayBase.hx b/haxe/ui/backend/TextDisplayBase.hx index 13a54c1..1198650 100644 --- a/haxe/ui/backend/TextDisplayBase.hx +++ b/haxe/ui/backend/TextDisplayBase.hx @@ -10,6 +10,7 @@ class TextDisplayBase extends Text { public function new() { super(""); scale = new pixi.core.math.Point(1, 1); + //this.style.wordWrap = true; } public var textWidth(get, null):Float; diff --git a/haxe/ui/backend/pixi.config.xml b/haxe/ui/backend/pixi.config.xml deleted file mode 100644 index 267e3db..0000000 --- a/haxe/ui/backend/pixi.config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - \ No newline at end of file diff --git a/haxe/ui/backend/pixi/PixiStyleHelper.hx b/haxe/ui/backend/pixi/PixiStyleHelper.hx index 0ddc63d..e202e11 100644 --- a/haxe/ui/backend/pixi/PixiStyleHelper.hx +++ b/haxe/ui/backend/pixi/PixiStyleHelper.hx @@ -176,7 +176,8 @@ class PixiStyleHelper { if (borderRadius == 0) { graphics.drawRect(rc.left, rc.top, rc.width, rc.height); } else { - graphics.drawRoundedRect(rc.left, rc.top, rc.width, rc.height, borderRadius); + //graphics.drawRoundedRect(rc.left, rc.top, rc.width, rc.height, borderRadius); + graphics.drawRect(rc.left, rc.top, rc.width, rc.height); } }