aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 04:23:13 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 04:23:13 +0000
commit17268376390c0ecb653e6cdecfdb8031e12c557b (patch)
tree7e2b9f6d444eead3c155fefe84b028198cab3141 /code
parent9e74067fde2461e514fa795d895beb80d7a7b977 (diff)
downloadioquake3-aero-17268376390c0ecb653e6cdecfdb8031e12c557b.tar.gz
ioquake3-aero-17268376390c0ecb653e6cdecfdb8031e12c557b.zip
Theoretical higher chance of working.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1413 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/sdl/sdl_icon.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/code/sdl/sdl_icon.h b/code/sdl/sdl_icon.h
index fa134a2..3e70dd5 100644
--- a/code/sdl/sdl_icon.h
+++ b/code/sdl/sdl_icon.h
@@ -1,17 +1,12 @@
-/* GIMP header image file format (RGB): /Users/zakk/Desktop/things/svn/ioquake3/code/sdl/sdl_icon.h */
+/* GIMP RGBA C-Source image dump (sdl_icon.h) */
-static unsigned int width = 32;
-static unsigned int height = 32;
-
-/* Call this macro repeatedly. After each use, the pixel data can be extracted */
-
-#define HEADER_PIXEL(data,pixel) {\
- pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
- pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
- pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
- data += 4; \
-}
-static char *header_data =
+static const struct {
+ unsigned int width;
+ unsigned int height;
+ unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
+ unsigned char pixel_data[32 * 32 * 4 + 1];
+} CLIENT_WINDOW_ICON = {
+ 32, 32, 4,
"`````````````````````````````````````````````````````````````P\\_"
"_PL[`0T]````````````````````````````````````````````````````````"
"````````````````````````````````````````````````````````````OW2E"
@@ -76,4 +71,5 @@ static char *header_data =
"CUJ+TM\\/_`P\\`````P\\_`P\\_````````````````````````````````````````"
"````````````````````````````````````````````````````````````_PL["
"[_PL^@8V`P\\_````````````````````````````````````````````````````"
- "";
+ "",
+};