Module: wine Branch: master Commit: 8577d7ec1e632ef0a9e6a3336cf5e8e3250a4e17 URL: https://gitlab.winehq.org/wine/wine/-/commit/8577d7ec1e632ef0a9e6a3336cf5e8e...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Oct 24 19:43:15 2023 +0200
gdiplus: Avoid implicit enum casts.
---
dlls/gdiplus/image.c | 2 +- dlls/gdiplus/metafile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index c6aa2ce5dd5..1fe259f6096 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -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) diff --git a/dlls/gdiplus/metafile.c b/dlls/gdiplus/metafile.c index 0664aa5fc89..265aec65c1f 100644 --- a/dlls/gdiplus/metafile.c +++ b/dlls/gdiplus/metafile.c @@ -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;