Render to the applet instead of its parent window since that doesn't work.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@223 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2007-05-03 22:56:29 +00:00
parent ab6252cee7
commit 095c718244
3 changed files with 6 additions and 3 deletions
@@ -21,6 +21,7 @@
package com.threerings.media;
import java.awt.Component;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.Rectangle;
@@ -84,7 +85,7 @@ public class BackFrameManager extends FrameManager
// we cache our frame's graphics object so that we can avoid
// instantiating a new one on every tick
if (_fgfx == null) {
_fgfx = (Graphics2D)_window.getGraphics();
_fgfx = (Graphics2D)((Component)_root).getGraphics();
}
_fgfx.drawImage(_backimg, 0, 0, null);