[PATCH] winex11.drv: call XRRSetScreenSize when changing resolution

Mark Harmstone hellas at burntcomma.com
Thu Nov 20 06:11:21 CST 2014


This changes xrandr12_set_current_mode so it behaves the same way as xrandr
does in 1.2 mode (e.g, `xrandr --output HDMI-0 --crtc 0 --mode 640x480`).
Before XRRSetCrtcConfig is called, the CRTC is temporarily disabled, then
XRRSetScreenSize is called. (XRRSetCrtcConfig will fail if the CRTC isn't
disabled first.)

This fixes bug 33632, incorrectly marked as resolved upstream. I think it
also fixes bug 31245, which I suspect is the same bug - it solves a problem
where Icewind Dale is unable to change resolution to 1024x768 if the current
resolution is below that, which seems to be similar behaviour.

---
 dlls/winex11.drv/xrandr.c | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winex11.drv-call-XRRSetScreenSize-when-changing-reso.patch
Type: text/x-patch
Size: 2497 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141120/ddb7532d/attachment.bin>


More information about the wine-patches mailing list