minor tweaks (could not find app icon, and CMakeInstall directives)

This commit is contained in:
2011-04-19 14:37:32 +02:00
parent 57d283ad48
commit b0d6d5baa6
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -144,9 +144,9 @@ int main (int argc, char* argv[]) {
// Load the icon
Uint32 colorkey;
SDL_Surface *image = NULL;
image = SDL_LoadBMP("./data/textures/icon.bmp");
image = SDL_LoadBMP(Engine::GetResourceFullPath("/data/textures/icon.bmp").c_str());
if (!image)
Engine::LogWarning("Could not load icon: ./data/textures/icon.bmp");
Engine::LogWarning("Could not load icon: data/textures/icon.bmp");
else
SDL_WM_SetIcon(image,NULL);