Fixed WidgetFluidGauge not respecting it's width

This commit is contained in:
bdew committed 2014-01-21 17:21:50 +02:00
1 parent 0b94b006ec
commit c495fb8b33
1 file changed
+2 -2
@@ -42,10 +42,10 @@ class WidgetFluidGauge(val rect: Rect, overlay: TextureLocation, dslot: DataSlot
while (fillHeight > 0) {
if (fillHeight > 16) {
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - 16 - yStart, icon, 16, 16)
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - 16 - yStart, icon, rect.w, 16)
fillHeight -= 16
} else {
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - fillHeight - yStart, icon, 16, fillHeight)
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - fillHeight - yStart, icon, rect.w, fillHeight)
fillHeight = 0
}
yStart = yStart + 16