Fixed stupid bug with callbacks, Alien Blaster still does not work

This commit is contained in:
pelya
2010-10-01 18:02:56 +03:00
parent f025a0ab9c
commit 631f4cde0d
4 changed files with 38 additions and 34 deletions

View File

@@ -28,7 +28,7 @@
#include <map>
#include <functional>
typedef std::map<std::string, SdlCompat_AcceleratedSurface *, std::greater<std::string> > StringSurfaceMap;
typedef std::map<std::string, std::pair< SdlCompat_AcceleratedSurface * , bool >, std::greater<std::string> > StringSurfaceMap;
class SurfaceDB;
@@ -57,6 +57,8 @@ class SurfaceDB {
StringSurfaceMap surfaceDB;
Uint8 transR, transG, transB;
SDL_Surface *loadSurfaceInternal( std::string fn, bool alpha );
SdlCompat_AcceleratedSurface *getSurface( std::string fn );
};