Use paint instead of getSnapshot on underlying mirages in composite mirage as it might save us creating an image object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4092 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -60,8 +60,7 @@ public class CompositeMirage implements Mirage
|
||||
|
||||
try {
|
||||
for (Mirage m : _mirages) {
|
||||
BufferedImage snap = m.getSnapshot();
|
||||
gfx.drawImage(snap, 0, 0, null);
|
||||
m.paint(gfx, 0, 0);
|
||||
}
|
||||
} finally {
|
||||
gfx.dispose();
|
||||
|
||||
Reference in New Issue
Block a user