From 04539916221c963bd46697e7fcf78e53e0aaf579 Mon Sep 17 00:00:00 2001 From: Matt Jensen Date: Fri, 19 Dec 2008 20:21:09 +0000 Subject: [PATCH] Added StatusPanel as an ImageObserver when drawing the background image. --- src/java/com/threerings/getdown/launcher/StatusPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/getdown/launcher/StatusPanel.java b/src/java/com/threerings/getdown/launcher/StatusPanel.java index cf0d26f..0485ddc 100644 --- a/src/java/com/threerings/getdown/launcher/StatusPanel.java +++ b/src/java/com/threerings/getdown/launcher/StatusPanel.java @@ -6,13 +6,13 @@ // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: -// +// // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright notice, this list of // conditions and the following disclaimer in the documentation and/or other materials provided // with the distribution. -// +// // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A // PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, @@ -144,7 +144,7 @@ public class StatusPanel extends JComponent img = _bg.getImage(_progress); } if (img != null) { - gfx.drawImage(img, 0, 0, null); + gfx.drawImage(img, 0, 0, this); } else { gfx.setColor(getBackground()); gfx.fillRect(0, 0, getWidth(), getHeight());