]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/image.c
q3map2 is now waring free
[xonotic/netradiant.git] / tools / quake3 / q3map2 / image.c
index 0ddcaf86bc59e556fa7d3e2cb5127a95dfdf1b00..0289e77c826bf662c45d95ec4b12e0952515e0f1 100644 (file)
@@ -99,7 +99,7 @@ note: this function is a total hack, as it reads/writes the png struct directly!
 typedef struct pngBuffer_s
 {
        byte    *buffer;
-       int             size, offset;
+       png_size_t              size, offset;
 }
 pngBuffer_t;
 
@@ -127,8 +127,8 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in
        png_struct      *png;
        png_info        *info, *end;
        pngBuffer_t     pb;
-       int                     i, bitDepth, colorType, channels;
-       png_uint_32     w, h;
+       int                     bitDepth, colorType, channels;
+       png_uint_32     w, h, i;
        byte            **rowPointers;