X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6dc3e5dc9cefb8a69e4a64d78f1e08c589c750b1..4f9297b0eead20a0bfee71df18e0d8f0cbc402fb:/src/xpm/scan.c diff --git a/src/xpm/scan.c b/src/xpm/scan.c index f3c7f49d8d..8660ff99ed 100644 --- a/src/xpm/scan.c +++ b/src/xpm/scan.c @@ -316,9 +316,12 @@ XpmCreateXpmImageFromImage(display, image, shapeimage, ErrorStatus = AGetImagePixels(image, width, height, &pmap, storePixel); # endif /* AMIGA */ +#else +#ifndef __VISAGECPP30__ ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap, storePixel); +#endif #endif @@ -503,7 +506,7 @@ ScanOtherColors(display, colors, ncolors, pixels, mask, cpp, attributes) return (XpmNoMemory); for (i = 0, i2 = mask, color = colors, xcolor = xcolors; - i < ncolors; i++, i2++, color++, xcolor++, pixels++) { + i < (unsigned)ncolors; i++, i2++, color++, xcolor++, pixels++) { if (!(s = color->string = (char *) XpmMalloc(cpp + 1))) { XpmFree(xcolors); @@ -546,7 +549,7 @@ ScanOtherColors(display, colors, ncolors, pixels, mask, cpp, attributes) } /* end 3.2 bc */ - for (i = 0, color = colors, xcolor = xcolors; i < ncolors; + for (i = 0, color = colors, xcolor = xcolors; i < (unsigned)ncolors; i++, color++, xcolor++) { /* look for related info from the attributes if any */