From 3b098932927461831af71cf529b30f9041bd8861 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 9 Dec 2002 05:13:45 +0000 Subject: [PATCH] The end of more font hackery. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2046 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/FrameManager.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/java/com/threerings/media/FrameManager.java b/src/java/com/threerings/media/FrameManager.java index ea387fff5..819b369a8 100644 --- a/src/java/com/threerings/media/FrameManager.java +++ b/src/java/com/threerings/media/FrameManager.java @@ -1,5 +1,5 @@ // -// $Id: FrameManager.java,v 1.30 2002/12/08 02:49:12 mdb Exp $ +// $Id: FrameManager.java,v 1.31 2002/12/09 05:13:45 mdb Exp $ package com.threerings.media; @@ -323,15 +323,12 @@ public class FrameManager // paint our frame participants (which want to be handled // specially) - _bgfx.setFont(_saveFont); _participantPaintOp.setGraphics(_bgfx); _participants.apply(_participantPaintOp); // repaint any widgets that have declared they need to be // repainted since the last tick - _bgfx.setFont(_saveFont); _remgr.paintComponents(_bgfx, this); - _saveFont = _bgfx.getFont(); if (_displayPerf && _perfLabel != null) { // render the current performance status @@ -484,7 +481,6 @@ public class FrameManager // fill the back buffer with white _bgfx = _backimg.getGraphics(); _bgfx.fillRect(0, 0, width, height); - _saveFont = _bgfx.getFont(); // clear out our frame graphics in case that became invalid for // the same reasons our back buffer became invalid @@ -751,10 +747,6 @@ public class FrameManager /** The graphics object from our frame. */ protected Graphics _fgfx; - /** We try to preserve the font in between renders in case other - * things mess with it. */ - protected Font _saveFont; - /** Used to avoid creating rectangles when rendering layered * components. */ protected Rectangle _lbounds = new Rectangle();