Fix poor quality application icons seen when the game is running.

Add back 8-bit icon files alongside files including both 8-bit and high
quality 32-bit versions. Use the high quality icon files for resource
files includes, and the low quality ones for in-game SDL.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1750
This commit is contained in:
Simon Howard 2009-12-18 22:11:06 +00:00
parent 8a58f6fb1e
commit b5b2cea39c
10 changed files with 385 additions and 1912 deletions

View file

@ -26,8 +26,10 @@ CODEBLOCKS_FILES= \
DATA_FILES= \ DATA_FILES= \
data/README \ data/README \
data/doom.ico \ data/doom.ico \
data/doom8.ico \
data/doom.png \ data/doom.png \
data/setup.ico \ data/setup.ico \
data/setup8.ico \
data/setup.png \ data/setup.png \
data/convert-icon data/convert-icon

View file

@ -3,3 +3,10 @@ The Chocolate Doom icon is based on an image by Chris Metcalf
http://www.flickr.com/photos/laffy4k/448920776/ http://www.flickr.com/photos/laffy4k/448920776/
The "foo8.ico" files are 8-bit depth only, while the "foo.ico" files
contain full 32-bit versions, scaled to different sizes and with proper
alpha masks (as well as the 8-bit versions). The 8-bit versions are
used when setting the icon within SDL, as SDL under Windows displays
full color icons in a very poor quality. The full-color versions are
used in the resource files.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
data/doom8.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
data/setup8.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -44,7 +44,7 @@ chocolate_setup_LDADD = \
if HAVE_PYTHON if HAVE_PYTHON
setup_icon.c : ../data/setup.ico setup_icon.c : ../data/setup8.ico
../data/convert-icon $^ $@ ../data/convert-icon $^ $@
endif endif

File diff suppressed because it is too large Load diff

View file

@ -188,7 +188,7 @@ EXTRA_DIST = \
if HAVE_PYTHON if HAVE_PYTHON
icon.c : ../data/doom.ico icon.c : ../data/doom8.ico
../data/convert-icon $^ $@ ../data/convert-icon $^ $@
endif endif

1166
src/icon.c

File diff suppressed because it is too large Load diff