Add transparent 32x32 icon to AC window

It bases on .../docs/images/icon.png from AC website repository,
just removed empty space, edges changed to more noticeable.
Note: on Mac an icon from assaultcube.icns is used.
This commit is contained in:
aurhat
2016-11-19 18:19:45 +01:00
parent 76fadbae52
commit 55142cbe41
2 changed files with 6 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

+6 -2
View File
@@ -1116,6 +1116,11 @@ int main(int argc, char **argv)
initlog("video: sdl");
if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video");
#ifndef __APPLE__
SDL_Surface *icon = IMG_Load("packages/misc/icon.png");
SDL_WM_SetIcon(icon, NULL);
#endif
initlog("video: mode");
const SDL_VideoInfo *video = SDL_GetVideoInfo();
if(video)
@@ -1132,8 +1137,7 @@ int main(int argc, char **argv)
initlog("video: misc");
SDL_WM_SetCaption("AssaultCube", NULL);
SDL_Surface *icon = IMG_Load("packages/misc/icon.bmp");
SDL_WM_SetIcon(icon, NULL);
keyrepeat(false);
SDL_ShowCursor(0);