removing some dead crap

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1301 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
(no author)
2007-07-18 12:48:15 +00:00
parent edf0feb265
commit 9d13923a03
5 changed files with 28 additions and 54 deletions

View File

@@ -15,6 +15,8 @@ namespace OpenRa.Game
readonly GraphicsDevice device;
Texture texture;
string filename = string.Format("../../../block-cache-{0}.png", suffix++);
public Size Size { get { return bitmap.Size; } }
public Sheet(Size size, GraphicsDevice d)
@@ -36,10 +38,9 @@ namespace OpenRa.Game
void LoadTexture()
{
string tempFile = string.Format("../../../block-cache-{0}.png", suffix++);
bitmap.Save(tempFile);
bitmap.Save(filename);
using( Stream s = File.OpenRead(tempFile) )
using( Stream s = File.OpenRead(filename) )
texture = Texture.Create(s, device);
}