We need to recreate our back buffer if our frame's bounds change.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2426 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: FrameManager.java,v 1.35 2003/03/25 23:06:51 mdb Exp $
|
// $Id: FrameManager.java,v 1.36 2003/04/19 01:04:29 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -395,7 +395,8 @@ public class FrameManager
|
|||||||
GraphicsConfiguration gc = _frame.getGraphicsConfiguration();
|
GraphicsConfiguration gc = _frame.getGraphicsConfiguration();
|
||||||
|
|
||||||
// create our off-screen buffer if necessary
|
// create our off-screen buffer if necessary
|
||||||
if (_backimg == null) {
|
if (_backimg == null || _backimg.getWidth() != _frame.getWidth() ||
|
||||||
|
_backimg.getHeight() != _frame.getHeight()) {
|
||||||
createBackBuffer(gc);
|
createBackBuffer(gc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user