gdiplus: Remove superfluous pointer casts.
This commit is contained in:
parent
4c7e72bb96
commit
b53877d92e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue