gdiplus: Use signed types in convert_pixels to avoid problems on 64-bit.
authorAlexandre Julliard <julliard@winehq.org>
Thu, 10 Mar 2011 13:09:56 +0000 (14:09 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 10 Mar 2011 13:10:11 +0000 (14:10 +0100)
dlls/gdiplus/gdiplus_private.h
dlls/gdiplus/image.c

index 68998df5d9f775fd60b5490d24ae3031ee9647fc..4575875b89589f3bab87e84cea7af6ed9f8a76d5 100644 (file)
@@ -112,7 +112,7 @@ extern const char *debugstr_pointf(CONST PointF* pt);
 extern void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height,
     BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride);
 
-extern GpStatus convert_pixels(UINT width, UINT height,
+extern GpStatus convert_pixels(INT width, INT height,
     INT dst_stride, BYTE *dst_bits, PixelFormat dst_format,
     INT src_stride, const BYTE *src_bits, PixelFormat src_format, ARGB *src_palette);
 
index 2582ae25b94b1a27425d5523306302c937848035..19165246f68bf3e9074fb06b37dbb55a87c90814 100644 (file)
@@ -498,11 +498,11 @@ GpStatus WINGDIPAPI GdipBitmapSetPixel(GpBitmap* bitmap, INT x, INT y,
     return Ok;
 }
 
-GpStatus convert_pixels(UINT width, UINT height,
+GpStatus convert_pixels(INT width, INT height,
     INT dst_stride, BYTE *dst_bits, PixelFormat dst_format,
     INT src_stride, const BYTE *src_bits, PixelFormat src_format, ARGB *src_palette)
 {
-    UINT x, y;
+    INT x, y;
 
     if (src_format == dst_format ||
         (dst_format == PixelFormat32bppRGB && PIXELFORMATBPP(src_format) == 32))