Display class now uses CachingImageList instead of wx.ImageList; updated builtinViewColumns.state to use it properly

This commit is contained in:
HomeWorld
2010-12-07 14:35:37 +02:00
parent 8e3fd63225
commit 0eda688351
2 changed files with 6 additions and 4 deletions

View File

@@ -51,8 +51,7 @@ class State(ViewColumn):
if stuff.isEmpty:
return -1
else:
bitmap = bitmapLoader.getBitmap("state_%s_small" % State_.getName(stuff.state).lower(), "icons")
return self.fittingView.imageList.Add(bitmap)
return self.fittingView.imageList.GetImageIndex("state_%s_small" % State_.getName(stuff.state).lower(), "icons")
else:
active = getattr(stuff, "active", None)
if active is None: