No longer insist that we ask the AWT to create optimal images. Instead an
interface is provided that does that in a pluggable manner. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3720 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.cast.bundle;
|
||||
|
||||
import java.awt.Component;
|
||||
import java.util.Iterator;
|
||||
|
||||
import com.threerings.cast.ComponentClass;
|
||||
@@ -43,7 +44,7 @@ public class BundledComponentRepositoryTest extends TestCase
|
||||
ResourceManager rmgr = new ResourceManager("rsrc");
|
||||
rmgr.initBundles(
|
||||
null, "config/resource/manager.properties", null);
|
||||
ImageManager imgr = new ImageManager(rmgr, null);
|
||||
ImageManager imgr = new ImageManager(rmgr, (Component)null);
|
||||
BundledComponentRepository repo =
|
||||
new BundledComponentRepository(rmgr, imgr, "components");
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.media.tile.bundle;
|
||||
|
||||
import java.awt.Component;
|
||||
import java.util.Iterator;
|
||||
|
||||
import com.threerings.media.image.ImageManager;
|
||||
@@ -43,7 +44,7 @@ public class BundledTileSetRepositoryTest extends TestCase
|
||||
rmgr.initBundles(
|
||||
null, "config/resource/manager.properties", null);
|
||||
BundledTileSetRepository repo = new BundledTileSetRepository(
|
||||
rmgr, new ImageManager(rmgr, null), "tilesets");
|
||||
rmgr, new ImageManager(rmgr, (Component)null), "tilesets");
|
||||
Iterator sets = repo.enumerateTileSets();
|
||||
while (sets.hasNext()) {
|
||||
sets.next();
|
||||
|
||||
Reference in New Issue
Block a user