https://bugs.winehq.org/show_bug.cgi?id=51834
Bug ID: 51834 Summary: EMF DC emits invalid EMF when calling StretchDiBits with info->bmiHeader.biSizeImage = 0 Product: Wine Version: 6.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com CC: jacek@codeweavers.com, zzhang@codeweavers.com Distribution: ---
BITMAPINFOHEADER allows setting biSizeImage to zero when biCompression is BI_RGB.
However, the Wine EMF DC does not handle this case and takes the biSizeImage value as-is.
This results in an invalid Enhanced Metafile output.
https://bugs.winehq.org/show_bug.cgi?id=51834
--- Comment #1 from Jinoh Kang jinoh.kang.kr@gmail.com --- Patch submitted: https://source.winehq.org/patches/data/216066
https://bugs.winehq.org/show_bug.cgi?id=51834
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |da126e19e3f033b2f3f79e1821c | |e8dc6e9d44b47 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Jinoh Kang jinoh.kang.kr@gmail.com --- Fixed in 6.22 at https://source.winehq.org/git/wine.git/commit/da126e19e3f033b2f3f79e1821ce8d....
https://bugs.winehq.org/show_bug.cgi?id=51834
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.23.