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.