Imported Upstream version 5.1.9 into tizen
[platform/upstream/giflib.git] / gifcolor.c
similarity index 99%
rename from util/gifcolor.c
rename to gifcolor.c
index b3e586b..a4d97b2 100644 (file)
@@ -135,7 +135,6 @@ int main(int argc, char **argv)
 static void GenRasterTextLine(GifRowType *RasterBuffer, char *TextLine,
                                        int BufferWidth, int ForeGroundIndex)
 {
-    unsigned char c;
     unsigned char Byte, Mask;
     int i, j, k, CharPosX, Len = strlen(TextLine);
 
@@ -143,7 +142,7 @@ static void GenRasterTextLine(GifRowType *RasterBuffer, char *TextLine,
         for (j = 0; j < GIF_FONT_HEIGHT; j++) RasterBuffer[j][i] = BackGround;
 
     for (i = CharPosX = 0; i < Len; i++, CharPosX += GIF_FONT_WIDTH) {
-       c = TextLine[i];
+       unsigned char c = TextLine[i];
        for (j = 0; j < GIF_FONT_HEIGHT; j++) {
            Byte = GifAsciiTable8x8[(unsigned short)c][j];
            for (k = 0, Mask = 128; k < GIF_FONT_WIDTH; k++, Mask >>= 1)