winex11.drv: Echo the videomode requested in the errormessage when not finding a matching mode

hightower at tregt.net hightower at tregt.net
Fri Jun 15 02:56:04 CDT 2007


I think this will make it more clear what mode the application is trying
to set(and what mode is missing from the system)
-------------- next part --------------
>From 609d88c24666dedd7c08d8f5214bad9b772fa069 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Kolbj=C3=B8rn_Fredheim?= <hightower at tregt.net>
Date: Fri, 15 Jun 2007 09:51:35 +0200
Subject: [PATCH] winex11.drv: Echo the videomode requested in the errormessage when not finding a matching mode


diff --git a/dlls/winex11.drv/settings.c b/dlls/winex11.drv/settings.c
index fd4671a..304f2d2 100644
--- a/dlls/winex11.drv/settings.c
+++ b/dlls/winex11.drv/settings.c
@@ -303,7 +303,9 @@ LONG X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode,
     }
 
     /* no valid modes found */
-    ERR("No matching mode found! (%s)\n", handler_name);
+    ERR("No matching mode found(%dx%dx%d)! (%s)\n", 
+        devmode->dmPelsWidth, devmode->dmPelsHeight, 
+        devmode->dmBitsPerPel, handler_name);
     return DISP_CHANGE_BADMODE;
 }
 
-- 
1.5.1.6


More information about the wine-patches mailing list