git » fp-git.git » commit 59ba43a

fixed big paletted images bug

author ecalot
2006-06-18 04:54:25 UTC
committer ecalot
2006-06-18 04:54:25 UTC
parent e8a492752a714e5f5e908fa044d2cc83c3828722

fixed big paletted images bug

PR/src/lib/object/image/image256.c +1 -1

diff --git a/PR/src/lib/object/image/image256.c b/PR/src/lib/object/image/image256.c
index 3b8fce9..fa8e18a 100644
--- a/PR/src/lib/object/image/image256.c
+++ b/PR/src/lib/object/image/image256.c
@@ -355,7 +355,7 @@ int objImage256Write(void* img,const char* file,int optionflag,const char* backu
 	
 	if (i->pal.type!=eResTypeNone) {
 		bits=paletteGetBits(i->pal);
-		colors=paletteGetColors(i->pal);
+		colors=i->colorCount; /*paletteGetColors(i->pal);*/
 		colorArray=paletteGetColorArray(i->pal);
 	} else {
 		bits=8; /*getCarry(i->type);*/