diff --git a/src/main/java/com/threerings/getdown/launcher/StatusPanel.java b/src/main/java/com/threerings/getdown/launcher/StatusPanel.java index ada90ed..6154a23 100644 --- a/src/main/java/com/threerings/getdown/launcher/StatusPanel.java +++ b/src/main/java/com/threerings/getdown/launcher/StatusPanel.java @@ -79,11 +79,11 @@ public class StatusPanel extends JComponent public boolean imageUpdate (Image img, int infoflags, int x, int y, int width, int height) { boolean updated = false; - if ((infoflags | WIDTH) != 0) { + if ((infoflags & WIDTH) != 0) { _psize.width = width; updated = true; } - if ((infoflags | HEIGHT) != 0) { + if ((infoflags & HEIGHT) != 0) { _psize.height = height; updated = true; } @@ -92,7 +92,7 @@ public class StatusPanel extends JComponent setSize(_psize); getParent().setSize(_psize); } - return (infoflags | ALLBITS) != 0; + return (infoflags & ALLBITS) == 0; } /**