From b53877d92e3d33b60841f6a5585c76165d1f520b Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 14 Jan 2009 09:52:24 +0100 Subject: [PATCH] gdiplus: Remove superfluous pointer casts. --- dlls/gdiplus/graphics.c | 2 +- dlls/gdiplus/image.c | 2 +- dlls/gdiplus/tests/image.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index b19c7bb3ea1..5193334e322 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -3229,7 +3229,7 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G m = *(graphics->worldtrans); - ret = GdipMultiplyMatrix(&m, (GpMatrix*)matrix, order); + ret = GdipMultiplyMatrix(&m, matrix, order); if(ret == Ok) *(graphics->worldtrans) = m; diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 0c610560e27..1fb8824c26d 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1180,7 +1180,7 @@ static GpStatus encode_image_BMP(LPVOID bitmap_bits, LPBITMAPINFO bitmap_info, *output = GdipAlloc(*output_size); - bmp_file_hdr = (BITMAPFILEHEADER*) *output; + bmp_file_hdr = *output; bmp_file_hdr->bfType = BITMAP_FORMAT_BMP; bmp_file_hdr->bfSize = *output_size; bmp_file_hdr->bfOffBits = diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 6000dde0b27..19f050061d5 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -455,7 +455,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void) LogPal = GdipAlloc(sizeof(LOGPALETTE)); ok(LogPal != NULL, "unable to allocate LOGPALETTE\n"); LogPal->palVersion = 0x300; - hpal = CreatePalette((const LOGPALETTE*) LogPal); + hpal = CreatePalette(LogPal); ok(hpal != NULL, "CreatePalette failed\n"); GdipFree(LogPal);