https://bugs.winehq.org/show_bug.cgi?id=37297
--- Comment #2 from Sagawa sagawa.aki+winebugs@gmail.com --- Created attachment 77811 --> https://bugs.winehq.org/attachment.cgi?id=77811 Proposed patch
Here is the proposed patch. I'll submit it as Merge Request after 10.0 release.
Actually from what I have found out this seems to be a bug in the TR4W [1]. However, it works fine on Windows so I think we need bug compatibility.
To be more specific, the app is specifying the DS_SETFONT flag in a DLGTEMPLATE-like structure, but does not setting the required size and typeface name in memory [2]. As a result, Wine and Windows interpret the garbage in memory as size and typeface name.
According to the test case I created [3], native ignores the font name and point size if the specified font name isn't found, and uses SYSTEM_FONT instead. Wine does not implement this method, so an extremely large dialog unit is calculated and a huge window is shown. My patch implements the method and fixes the issue.
[1] https://tr4w.net/ [2] https://github.com/n4af/TR4W/blob/93a731f6f4e182dfa35df8b8fc2dfa14ac2f7dde/t... [3] https://testbot.winehq.org/JobDetails.pl?Key=150838