Commit 8577d7ec authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdiplus: Avoid implicit enum casts.

parent a6da5134
......@@ -6066,7 +6066,7 @@ GpStatus WINGDIPAPI GdipInitializePalette(ColorPalette *palette,
ColorPalette *wic_palette;
GpStatus status = Ok;
wic_palette = get_palette(NULL, type);
wic_palette = get_palette(NULL, (WICBitmapPaletteType)type);
if (!wic_palette) return OutOfMemory;
if (palette->Count >= wic_palette->Count)
......
......@@ -4531,7 +4531,7 @@ GpStatus WINGDIPAPI GdipRecordMetafileFileName(GDIPCONST WCHAR* fileName,
(*metafile)->bounds.X = (*metafile)->bounds.Y = 0.0;
(*metafile)->bounds.Width = (*metafile)->bounds.Height = 1.0;
(*metafile)->unit = UnitPixel;
(*metafile)->metafile_type = type;
(*metafile)->metafile_type = (MetafileType)type;
(*metafile)->record_dc = record_dc;
(*metafile)->comment_data = NULL;
(*metafile)->comment_data_size = 0;
......
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