https://bugs.winehq.org/show_bug.cgi?id=58003
Bug ID: 58003 Summary: Skyrim Special Edition: Creation Kit draws menu with incorrect resolution. Product: Wine Version: 10.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: fx-8350-8@hotmail.com Distribution: ---
The Scenes tab of the quest window draws a flow chart menu with a vertical resolution of 1 pixel making it unusable.
An internal function in "Creation Kit.exe" creates the flow chart menu and is called two times (with the second call overwriting the first) by calling IntersectRect with the correct menu resolution and an uninitialized RECT structure that contains mostly random values. Afterwards function calls in the creation kit sets the values in the uninitialized RECT to left=-2, top=-1, right=1094215229, bottom=1 on both Windows and Wine.
On Wine this RECT is an input to IntersectRect with the correct resolution and outputs a RECT with top=0, bottom=1 leading to the unusable menu.
On Windows a call to KiUserCallbackDispatcher overwrites the incorrect RECT to have bottom=32767 before the second IntersectRect call making RECT invalid due to the bottom value being larger than top. This causes the IntersectRect call to fail and create the menu later in the creation kit.
Since the menu with a resolution of 1 is technically valid the creation kit never sets it to the correct resolution on wine.