Not so fast, we need to jigger this differently.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2753 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-08-08 21:43:05 +00:00
parent dbd2422bd4
commit 6cf90dcddd
@@ -1,5 +1,5 @@
// //
// $Id: MediaPanel.java,v 1.39 2003/08/08 21:39:29 mdb Exp $ // $Id: MediaPanel.java,v 1.40 2003/08/08 21:43:05 mdb Exp $
package com.threerings.media; package com.threerings.media;
@@ -208,6 +208,8 @@ public class MediaPanel extends JComponent
_perfLabel = new Label( _perfLabel = new Label(
"", Label.OUTLINE, Color.white, Color.black, "", Label.OUTLINE, Color.white, Color.black,
new Font("Arial", Font.PLAIN, 10)); new Font("Arial", Font.PLAIN, 10));
}
if (_perfRect == null) {
_perfRect = new Rectangle(5, 5, 0, 0); _perfRect = new Rectangle(5, 5, 0, 0);
} }
@@ -352,7 +354,7 @@ public class MediaPanel extends JComponent
paint(gfx, dirty); paint(gfx, dirty);
// render our performance debugging if it's enabled // render our performance debugging if it's enabled
if (_perfLabel != null && _perfDebug.getValue()) { if (_perfRect != null && _perfDebug.getValue()) {
gfx.setClip(null); gfx.setClip(null);
_perfLabel.render(gfx, _perfRect.x, _perfRect.y); _perfLabel.render(gfx, _perfRect.x, _perfRect.y);
} }
@@ -534,7 +536,7 @@ public class MediaPanel extends JComponent
protected void adjusted (boolean newValue) { protected void adjusted (boolean newValue) {
// clear out some things if we're turned off // clear out some things if we're turned off
if (!newValue) { if (!newValue) {
_perfLabel = null; _perfRect = null;
} }
} }
}; };