We need a separate bitmap because we can only include each bitmap once in the window, but we can go ahead and share the underlying data.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@944 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -45,9 +45,7 @@ public class Tile
|
||||
{
|
||||
if (_image is Bitmap) {
|
||||
// TODO - handle this more consistently...
|
||||
var data :BitmapData = new BitmapData(_image.width, _image.height, true, 0x00000000);
|
||||
data.draw(_image);
|
||||
return new Bitmap(data);
|
||||
return new Bitmap(Bitmap(_image).bitmapData);
|
||||
} else {
|
||||
return _image;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user