Zhiyi Zhang : winex11.drv: Allow reporting a virtual desktop mode with the same width or height as the current mode.

Alexandre Julliard julliard at winehq.org
Thu Jul 23 16:36:58 CDT 2020


Module: wine
Branch: master
Commit: 6436600db5a680d016bc428326d0f67417315ad7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6436600db5a680d016bc428326d0f67417315ad7

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Wed Jul 22 15:24:14 2020 +0800

winex11.drv: Allow reporting a virtual desktop mode with the same width or height as the current mode.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/desktop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 5a9e0f59ae..b5894d5e02 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -108,7 +108,7 @@ static void make_modes(void)
             }
         }
     }
-    if ((max_width != screen_width) && (max_height != screen_height))
+    if ((max_width != screen_width) || (max_height != screen_height))
     {
         /* root window size (if different from desktop window) */
         X11DRV_Settings_AddOneMode(max_width, max_height, 0, 60);




More information about the wine-cvs mailing list