Unity games not displaying properly (too wide/big) on Linux using WINE
Hi,
First off, I've been quite thrilled that I've been able to run so many games on Linux. However I'm seeing a common issue with some unity games and resolution detection(?). I wonder if others in the community are familiar with this/have a fix. My first round of google searches have failed me... except I have tried changing virtual desktop resolutions to be bigger - that seems to work except now it's all too big for my screens.
My setup is dual screen.
1680x1050 and 1280x1024 running off a: 0a:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti] (rev a1)
$ xrandr
Screen 0: minimum 8 x 8, current 2960 x 1050, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1680x1050+1280+0 (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 59.88*+ 59.95
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
1280x1024 60.02*+ 75.02
1280x960 60.00
1280x800 59.81
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
Here's an example of what I see on my 1650x1050 monitor. Second image below shows my created a virtual desktop (in wine, this is what I found to do from google)... I set for 2680px wide... now I see the application seems to want to render at 1830 pixels wide (looks like I may have issues in the y direction too).
Here is a log from me running the program: https://pastebin.com/zsDNHHrV -- Likes like below make me wonder if there is not some "fixing" needed in WINE... ``` 00d4:fixme:dxgi:dxgioutputGetDisplayModeList iface 00007F8FDF046480, format DXGIFORMATR8G8B8A8UNORM, flags 0, modecount 000000000010F4F0, modes 0000000000000000 partial stub! 00d4:fixme:dxgi:dxgioutputGetDisplayModeList iface 00007F8FDF046480, format DXGIFORMATR8G8B8A8UNORM, flags 0, modecount 000000000010F4F0, modes 0000000030160010 partial stub!
00d4:fixme:system:NtUserQueryDisplayConfig flags 0x2, pathscount 0x10f870, paths 0x30160010, modescount 0x10f9f8, modes 0x301600b0, topologyid (nil) semi-stub 00d4:fixme:dxgi:d3d11swapchain_GetFrameStatistics iface 00007F8FDF063B80, stats 000000000010F9C0 stub! ```

