]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 24 Jan 2014 17:50:38 +0000 (17:50 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 24 Jan 2014 17:50:38 +0000 (17:50 +0000)
coders/dds.c

index 7b6c4c3be0220f1fe779ccf8a5b667f755314495..31d1f2230a0fc5a1e8ee9a9e870142aa4e834142 100644 (file)
@@ -2968,9 +2968,9 @@ static void WriteSingleColorFit(Image *image, const DDSVector4 *points,
     start,
     end;
 
-  color[0] = ClampToLimit(255.0f*points->x,255);
-  color[1] = ClampToLimit(255.0f*points->y,255);
-  color[2] = ClampToLimit(255.0f*points->z,255);
+  color[0] = (unsigned char) ClampToLimit(255.0f*points->x,255);
+  color[1] = (unsigned char) ClampToLimit(255.0f*points->y,255);
+  color[2] = (unsigned char) ClampToLimit(255.0f*points->z,255);
 
   ComputeEndPoints(DDS_LOOKUP,color,&start,&end,&index);