author | ecalot
<ecalot> 2006-06-18 04:54:25 UTC |
committer | ecalot
<ecalot> 2006-06-18 04:54:25 UTC |
parent | e8a492752a714e5f5e908fa044d2cc83c3828722 |
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);*/