Created Image

This commit is contained in:
Kayne Ruse
2013-04-29 02:50:58 +10:00
parent 1226fa08ca
commit d72a3f4fb5
5 changed files with 78 additions and 11 deletions
+2 -1
View File
@@ -58,5 +58,6 @@ SDL_Surface* SurfaceManager::LoadSurface(std::string key, std::string fname) {
if (ptr == nullptr) {
throw(std::runtime_error(std::string("Failed to load file: ") + fname));
}
SDL_SetColorKey(ptr, SDL_SRCCOLORKEY, SDL_MapRGB(ptr->format, 255, 0, 255)); //default
return surfaceMap[key] = ptr;
}
}