Commit b53877d9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

gdiplus: Remove superfluous pointer casts.

parent 4c7e72bb
...@@ -3229,7 +3229,7 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G ...@@ -3229,7 +3229,7 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G
m = *(graphics->worldtrans); m = *(graphics->worldtrans);
ret = GdipMultiplyMatrix(&m, (GpMatrix*)matrix, order); ret = GdipMultiplyMatrix(&m, matrix, order);
if(ret == Ok) if(ret == Ok)
*(graphics->worldtrans) = m; *(graphics->worldtrans) = m;
......
...@@ -1180,7 +1180,7 @@ static GpStatus encode_image_BMP(LPVOID bitmap_bits, LPBITMAPINFO bitmap_info, ...@@ -1180,7 +1180,7 @@ static GpStatus encode_image_BMP(LPVOID bitmap_bits, LPBITMAPINFO bitmap_info,
*output = GdipAlloc(*output_size); *output = GdipAlloc(*output_size);
bmp_file_hdr = (BITMAPFILEHEADER*) *output; bmp_file_hdr = *output;
bmp_file_hdr->bfType = BITMAP_FORMAT_BMP; bmp_file_hdr->bfType = BITMAP_FORMAT_BMP;
bmp_file_hdr->bfSize = *output_size; bmp_file_hdr->bfSize = *output_size;
bmp_file_hdr->bfOffBits = bmp_file_hdr->bfOffBits =
......
...@@ -455,7 +455,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void) ...@@ -455,7 +455,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
LogPal = GdipAlloc(sizeof(LOGPALETTE)); LogPal = GdipAlloc(sizeof(LOGPALETTE));
ok(LogPal != NULL, "unable to allocate LOGPALETTE\n"); ok(LogPal != NULL, "unable to allocate LOGPALETTE\n");
LogPal->palVersion = 0x300; LogPal->palVersion = 0x300;
hpal = CreatePalette((const LOGPALETTE*) LogPal); hpal = CreatePalette(LogPal);
ok(hpal != NULL, "CreatePalette failed\n"); ok(hpal != NULL, "CreatePalette failed\n");
GdipFree(LogPal); GdipFree(LogPal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment