https://bugs.winehq.org/show_bug.cgi?id=55618
Bug ID: 55618 Summary: incorrect monitor resolution Product: Wine Version: 8.0.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: win32u Assignee: wine-bugs@winehq.org Reporter: ez@vajn.icu Distribution: ---
Created attachment 75155 --> https://bugs.winehq.org/attachment.cgi?id=75155 Inquire wine graphic resolution
$ dpkg -l | grep wine ii wine-stable 8.0.2~trixie-1 ii wine-stable-amd64 8.0.2~trixie-1 ii wine-stable-i386:i386 8.0.2~trixie-1
I have a dual monitor configuration with Xinerama/NVidia:
Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 16384 x 16384 DP-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 432mm x 324mm 1920x1200 59.95*+ Screen 1: minimum 8 x 8, current 1600 x 1200, maximum 16384 x 16384 DP-1 connected primary 1600x1200+0+0 (normal left inverted right x axis y axis) 408mm x 306mm 1600x1200 60.00*+
Wine reports the resolution as 1024x768 and I cannot scale a graphic wine window past that. This change happened only in the last 2 months, this bug was not present on the same machine with same Xinerama/NVidia configuration. I'm not able to make this work again because kernel and a lot of libraries have changed since. Simply rolling back the wine version did not solve this bug.
The attached program incorrectly reports the screen resolution as 1024x768 with both methods.
After spending a day trying to fix this I've ended up binary patching the following files (I wasn't successful at build wine from sources): lib/wine/i386-unix/win32u.so lib64/wine/x86_64-unix/win32u.so I have patched the add_monitor' 'get_display_rect' & 'get_primary_monitor_rect' functions from the above libs so that monitor->rc_monitor and monitor->rc_work are (0,0,1920,1200)
Now the reported resolution with both methods is 1920x1200 and all the wine programs work correctly.