Merge pull request #4 from Clownacy/master
Removed junk res/ICON files, and made the icon filesize smaller
This commit is contained in:
commit
5f2c176dd3
7 changed files with 32 additions and 4103 deletions
BIN
res/ICON/3.ico
BIN
res/ICON/3.ico
Binary file not shown.
Before Width: | Height: | Size: 766 B |
BIN
res/ICON/3s.ico
BIN
res/ICON/3s.ico
Binary file not shown.
Before Width: | Height: | Size: 766 B |
BIN
res/ICON/4.bmp
BIN
res/ICON/4.bmp
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
res/ICON/4.ico
BIN
res/ICON/4.ico
Binary file not shown.
Before Width: | Height: | Size: 318 B |
BIN
res/ICON/4s.ico
BIN
res/ICON/4s.ico
Binary file not shown.
|
@ -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
Loading…
Add table
Reference in a new issue