Alexandre Julliard pushed to branch master at wine / wine Commits: ace81d20 by Rose Hellsing at 2026-06-19T22:21:03+02:00 gdiplus: Recognize raw WMF streams in the WMF image codec. Add raw-WMF signatures to the WMF image codec so GdipLoadImageFromStream can detect raw \wmetafile data (e.g. embedded in RTF documents) in addition to the placeable WMF format. Signed-off-by: Rose Hellsing <rose@pinkro.se> - - - - - 5f02f40a by Rose Hellsing at 2026-06-19T22:21:03+02:00 gdiplus: Rasterize metafiles for encoding and report raw WMF as EMF. Rasterize metafiles to bitmaps inside the WIC-based encoders so GdipSaveImageToStream works for WMF/EMF inputs (e.g. encoding to PNG or JPEG), which is what upstream .NET WPF calls for WMF images embedded in RTF documents. Also preserve the decoder's metafile format choice in GdipLoadImageFromStream and report raw WMF streams as ImageFormatEMF, to match Windows' behavior. Signed-off-by: Rose Hellsing <rose@pinkro.se> - - - - - 302589b2 by Rose Hellsing at 2026-06-19T22:21:03+02:00 gdiplus: Store the source HMETAFILE for proper lifetime management. GdipCreateMetafileFromWmf converts the WMF to EMF for playback but the caller may still expect the original HMETAFILE to follow the documented ownership rules (kept on failure, released by gdiplus on success when delete=TRUE). Track the source handle on the GpMetafile and release it from METAFILE_Free, leaving the failure path to the caller per MSDN. - - - - - ff95854f by Rose Hellsing at 2026-06-19T22:21:03+02:00 gdiplus/tests: Add tests for raw WMF load, playback and encoding. Add a raw WMF test asset and tests that load it from a stream, draw it, and save it as PNG. - - - - - 4 changed files: - dlls/gdiplus/gdiplus_private.h - dlls/gdiplus/image.c - dlls/gdiplus/metafile.c - dlls/gdiplus/tests/image.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/4cc59f2360dc088a5e20695fba5b03... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/4cc59f2360dc088a5e20695fba5b03... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help