http://bugs.winehq.org/show_bug.cgi?id=32508
Bug #: 32508 Summary: StringFormatFlagsNoClip breaks StringAlignmentCenter and (probably) StringAlignmentFar) Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus AssignedTo: wine-bugs@winehq.org ReportedBy: alexpigna.dev@gmail.com Classification: Unclassified
In method GdipDrawString if StringFormatFlagsNoClip flag is enabled the string rect width is modified to be very large. This breaks how centered and probably far alignments are handled since the string will be moved a crazy amount of pixels to the right.
Since when StringFormatFlagsNoClip is on the clipping region is already disabled I suspect that modifying the width is not only broken but also unnecessary. I'm not sure though since I don't know gdiplus code well enough. Leaving the width as it is fixes the issue for my case: a .net launcher for a game.
http://bugs.winehq.org/show_bug.cgi?id=32508
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=32508
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry@baikal.ru
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2013-03-02 11:14:25 CST --- This was changed by http://source.winehq.org/git/wine.git/commit/bfa35f37a7687cdae338ad9837fc595...
I don't know what the rationale was for that part of it.
https://bugs.winehq.org/show_bug.cgi?id=32508
--- Comment #2 from Vincent Povirk madewokherd@gmail.com --- The code doesn't currently look wrong to me. What was your original test case?
https://bugs.winehq.org/show_bug.cgi?id=32508
--- Comment #3 from Vincent Povirk madewokherd@gmail.com --- (I think this was probably fixed by Dmitry and would like it to be retested if possible.)
https://bugs.winehq.org/show_bug.cgi?id=32508
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1