git » fp-git.git » commit 1f8ecc3

a hard-to-find bug fixed: palette initialization

author ecalot
2004-07-03 12:33:24 UTC
committer ecalot
2004-07-03 12:33:24 UTC
parent 139a0db20fe89b50282b9c784b211fdb61fddd19

a hard-to-find bug fixed: palette initialization

PR/src/include/compress.h +2 -0
PR/src/include/image.h +2 -0

diff --git a/PR/src/include/compress.h b/PR/src/include/compress.h
index 784830d..44cb64b 100644
--- a/PR/src/include/compress.h
+++ b/PR/src/include/compress.h
@@ -62,6 +62,8 @@ typedef struct {
 	unsigned char type; /* XY where X=B if 4 bits or X=0 if 1 bit; Y=algorithm */
 }tImage;
 
+#define DEFAULT_PALETTE "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
+
 /* Prototypes */
 
 int mCompressGraphic(unsigned char** a,tImage* i, int* size);
diff --git a/PR/src/include/image.h b/PR/src/include/image.h
index 784830d..44cb64b 100644
--- a/PR/src/include/image.h
+++ b/PR/src/include/image.h
@@ -62,6 +62,8 @@ typedef struct {
 	unsigned char type; /* XY where X=B if 4 bits or X=0 if 1 bit; Y=algorithm */
 }tImage;
 
+#define DEFAULT_PALETTE "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
+
 /* Prototypes */
 
 int mCompressGraphic(unsigned char** a,tImage* i, int* size);