Need to take a different approach to get everything to repaint when we
lose our back buffer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2518 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: BackFrameManager.java,v 1.2 2003/04/27 01:30:25 mdb Exp $
|
// $Id: BackFrameManager.java,v 1.3 2003/05/01 22:06:52 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -52,7 +52,8 @@ public class BackFrameManager extends FrameManager
|
|||||||
|
|
||||||
// dirty everything if we're not incrementally rendering
|
// dirty everything if we're not incrementally rendering
|
||||||
if (!incremental) {
|
if (!incremental) {
|
||||||
_frame.update(_bgfx);
|
_frame.getRootPane().revalidate();
|
||||||
|
_frame.getRootPane().repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!paint(_bgfx)) {
|
if (!paint(_bgfx)) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: FlipFrameManager.java,v 1.1 2003/04/26 17:56:26 mdb Exp $
|
// $Id: FlipFrameManager.java,v 1.2 2003/05/01 22:06:52 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -40,7 +40,8 @@ public class FlipFrameManager extends FrameManager
|
|||||||
// dirty everything if we're not incrementally rendering
|
// dirty everything if we're not incrementally rendering
|
||||||
if (!incremental) {
|
if (!incremental) {
|
||||||
Log.info("Doing non-incremental render; contents lost.");
|
Log.info("Doing non-incremental render; contents lost.");
|
||||||
_frame.update(gfx);
|
_frame.getRootPane().revalidate();
|
||||||
|
_frame.getRootPane().repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
// request to paint our participants and components and bail
|
// request to paint our participants and components and bail
|
||||||
|
|||||||
Reference in New Issue
Block a user