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