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:
Mike Thomas
2010-07-10 00:13:50 +00:00
parent c65ee0c562
commit e00b8be8d4
+1 -3
View File
@@ -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;
} }