Theoretical higher chance of working.

This commit is contained in:
Zachary Slater 2008-07-06 04:23:13 +00:00
parent 3c13c61fa4
commit 963aa3e40f

View file

@ -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 const struct {
static unsigned int height = 32; unsigned int width;
unsigned int height;
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned char pixel_data[32 * 32 * 4 + 1];
#define HEADER_PIXEL(data,pixel) {\ } CLIENT_WINDOW_ICON = {
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \ 32, 32, 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 =
"`````````````````````````````````````````````````````````````P\\_" "`````````````````````````````````````````````````````````````P\\_"
"_PL[`0T]````````````````````````````````````````````````````````" "_PL[`0T]````````````````````````````````````````````````````````"
"````````````````````````````````````````````````````````````OW2E" "````````````````````````````````````````````````````````````OW2E"
@ -76,4 +71,5 @@ static char *header_data =
"CUJ+TM\\/_`P\\`````P\\_`P\\_````````````````````````````````````````" "CUJ+TM\\/_`P\\`````P\\_`P\\_````````````````````````````````````````"
"````````````````````````````````````````````````````````````_PL[" "````````````````````````````````````````````````````````````_PL["
"[_PL^@8V`P\\_````````````````````````````````````````````````````" "[_PL^@8V`P\\_````````````````````````````````````````````````````"
""; "",
};