https://bugs.winehq.org/show_bug.cgi?id=52440
Bug ID: 52440 Summary: GdipRotateWorldTransform+GdipDrawImage draws wrong Product: Wine Version: 7.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: hjkl@quantentunnel.de Distribution: ---
Created attachment 71713 --> https://bugs.winehq.org/attachment.cgi?id=71713 Example to reproduce issue
The image output of GdipDrawImage is wrong if applying a rotation with GdipRotateWorldTransform.
I attached an example to reproduce the issue. The .zip file contains: WindowsOutput.png: screenshot of how Windows paints it WineOutput.png: screenshot of how Wine paints it (on Debian 11.2) source: the according source code (Visual C++ 2019 solution), source\x64\Release\Example.exe is the compiled EXE.
The example loads "image.png" from the same directory (just a 16x16 pixels red block) and shows it with the rotation.
This is the critical code:
Gdiplus::DllExports::GdipRotateWorldTransform(pGr, 10, Gdiplus::MatrixOrderAppend); Gdiplus::DllExports::GdipDrawImage(pGr, g_pImg, 100, 50);
Thanks in advance!
https://bugs.winehq.org/show_bug.cgi?id=52440
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Seems to work fine for me, wine-7.0 built from source, ArchLinux, mesa + amdgpu. What's your setup?
https://bugs.winehq.org/show_bug.cgi?id=52440
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- Works fine for me on ArchLinux with Nvidia (blob 495.46) as well.
https://bugs.winehq.org/show_bug.cgi?id=52440
--- Comment #3 from hjkl@quantentunnel.de --- I'm running Debian 11.2 and Wine 7.0 within VirtualBox 6.1.32 (Windows 10 host). Maybe VirtualBox is causing the issue. Tomorrow I'll try to run Linux natively on my computer and check it there.
https://bugs.winehq.org/show_bug.cgi?id=52440
hjkl@quantentunnel.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|UNCONFIRMED |RESOLVED
--- Comment #4 from hjkl@quantentunnel.de --- I installed the same Debian 11.2 and Wine 7.0 directly on my computer now without VirtualBox and the issue is gone. So, it's most likely a VirtualBox bug. Thanks for your support.
https://bugs.winehq.org/show_bug.cgi?id=52440
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com