]> git.imager.perl.org - imager.git/commitdiff
- mc_web_map was storing colors with an alpha of 0
authorTony Cook <tony@develop=help.com>
Thu, 23 May 2002 01:01:27 +0000 (01:01 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 23 May 2002 01:01:27 +0000 (01:01 +0000)
Changes
quant.c

diff --git a/Changes b/Changes
index ed2598f14e318bb975a159b9fad5e331e43f072b..bc2ae90c333dd29b726d86059867828460ef1275 100644 (file)
--- a/Changes
+++ b/Changes
@@ -669,6 +669,7 @@ Revision history for Perl extension Imager.
           low-level output functions
         - OO interfaces to UTF8 and flags, for now leaving the flags as
           specific to Imager::Font::Type1
           low-level output functions
         - OO interfaces to UTF8 and flags, for now leaving the flags as
           specific to Imager::Font::Type1
+       - mc_web_map was storing colors with an alpha of 0
 
 =================================================================
 
 
 =================================================================
 
diff --git a/quant.c b/quant.c
index 2c11a5580bc98dec1ceffbdfcbfc924d7d70fe22..8e79d273b7805b1f5b66545fc13ed83174ab786f 100644 (file)
--- a/quant.c
+++ b/quant.c
@@ -50,7 +50,7 @@ quant_makemap(i_quantize *quant, i_img **imgs, int count) {
       for (r = 0; r < 256; r+=0x33)
        for (g = 0; g < 256; g+=0x33)
          for (b = 0; b < 256; b += 0x33)
       for (r = 0; r < 256; r+=0x33)
        for (g = 0; g < 256; g+=0x33)
          for (b = 0; b < 256; b += 0x33)
-           setcol(quant->mc_colors+i++, r, g, b, 0);
+           setcol(quant->mc_colors+i++, r, g, b, 255);
       quant->mc_count = i;
     }
     break;
       quant->mc_count = i;
     }
     break;