From 5a1c150a03e1543784034a60b45bc0ef21728561 Mon Sep 17 00:00:00 2001 From: bdew Date: Tue, 16 Sep 2014 14:57:37 +0300 Subject: [PATCH] Fixed DrawTarget.drawTextureInterpolate ignoring color parameter --- src/net/bdew/lib/gui/DrawTarget.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/bdew/lib/gui/DrawTarget.scala b/src/net/bdew/lib/gui/DrawTarget.scala index 60ac1ba..86ce209 100644 --- a/src/net/bdew/lib/gui/DrawTarget.scala +++ b/src/net/bdew/lib/gui/DrawTarget.scala @@ -20,7 +20,7 @@ trait DrawTarget { def drawTextMultiline(text: String, r: Rect, color: Color) def drawTextureInterpolate(r: Rect, t: Texture, x1: Float, y1: Float, x2: Float, y2: Float, color: Color = Color.white) = - drawTexture(r.interpolate(x1, y1, x2, y2), Texture.interpolate(t, x1, y1, x2, y2)) + drawTexture(r.interpolate(x1, y1, x2, y2), Texture.interpolate(t, x1, y1, x2, y2), color) } trait SimpleDrawTarget extends DrawTarget {