1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

gdiplus: Avoid implicit enum casts.

This commit is contained in:
Jacek Caban 2023-10-24 19:43:15 +02:00 committed by Alexandre Julliard
parent a6da51347e
commit 8577d7ec1e
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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;