Merge pull request #4 from Clownacy/master

Removed junk res/ICON files, and made the icon filesize smaller
This commit is contained in:
Cucky 2019-01-21 14:32:46 -05:00 committed by GitHub
commit 5f2c176dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)
{
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_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
{

File diff suppressed because it is too large Load diff