X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FBox.java;h=c34948d5de03a6398aaf04a12e27149a596eb3b2;hp=8cf6271afe204a4c279aa5aa0d2f17bd5b27772a;hb=042d893f039709d5b1f7220fc7ee0011ddccba96;hpb=ea1719e7d138393d6998253a61db2df5727fc298 diff --git a/src/org/ibex/core/Box.java b/src/org/ibex/core/Box.java index 8cf6271..c34948d 100644 --- a/src/org/ibex/core/Box.java +++ b/src/org/ibex/core/Box.java @@ -143,8 +143,8 @@ public final class Box extends JSScope implements Task { public void perform() throws JSExn { if (texture == null) { Log.warn(Box.class, "perform() called with null texture"); return; } if (texture.isLoaded) { - setWidth(max(texture.width, maxwidth), maxwidth); - setHeight(max(texture.height, maxheight), maxheight); + setWidth(max(texture.width, minwidth), maxwidth); + setHeight(max(texture.height, minheight), maxheight); DIRTY; } else { JS res = texture.stream; texture = null; throw new JSExn("image not found: "+res.unclone()); } }