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) {
|
if (_image is Bitmap) {
|
||||||
// TODO - handle this more consistently...
|
// TODO - handle this more consistently...
|
||||||
var data :BitmapData = new BitmapData(_image.width, _image.height, true, 0x00000000);
|
return new Bitmap(Bitmap(_image).bitmapData);
|
||||||
data.draw(_image);
|
|
||||||
return new Bitmap(data);
|
|
||||||
} else {
|
} else {
|
||||||
return _image;
|
return _image;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user