Removed junk res/ICON files, and made the icon filesize smaller

Now, the icon is stored as 16x16, but upscaled to 256x256 when it's
loaded.
This commit is contained in:
Clownacy 2019-01-21 04:17:10 +00:00
parent 7859eeed3d
commit 409e94a2de
7 changed files with 32 additions and 4103 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

View file

@ -206,8 +206,13 @@ int main(int argc, char *argv[])
if (fp) if (fp)
{ {
SDL_Surface *iconSurf = SDL_LoadBMP_RW(fp, 1); SDL_Surface *iconSurf = SDL_LoadBMP_RW(fp, 1);
SDL_SetWindowIcon(gWindow, iconSurf); SDL_Surface *iconConverted = SDL_ConvertSurfaceFormat(iconSurf, SDL_PIXELFORMAT_RGB888, 0);
SDL_FreeSurface(iconSurf); SDL_FreeSurface(iconSurf);
SDL_Surface *iconSurfUpscaled = SDL_CreateRGBSurfaceWithFormat(0, 256, 256, 0, SDL_PIXELFORMAT_RGB888);
SDL_LowerBlitScaled(iconConverted, NULL, iconSurfUpscaled, NULL);
SDL_FreeSurface(iconConverted);
SDL_SetWindowIcon(gWindow, iconSurfUpscaled);
SDL_FreeSurface(iconSurfUpscaled);
} }
else else
{ {

File diff suppressed because it is too large Load diff