[1/9] wined3d: Show the MESSAGE in device_find_fbconfigs() only once

H. Verbeet hverbeet at gmail.com
Tue Sep 26 13:31:23 CDT 2006


Changelog:
  - Show the MESSAGE in device_find_fbconfigs() only once, as the TODO says.

NOTE: The changes in these patches should be relatively independant,
but I'm sending them as a set because they do change the same files.
-------------- next part --------------
---

 dlls/wined3d/device.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7aef3ac..886ab5c 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -7374,10 +7374,14 @@ #define PUSH2(att,value)  attribs[nAttri
                              attribs, &nCfgs);
     if (cfgs == NULL) {
         /* OK we didn't find the exact config, so use any reasonable match */
-        /* TODO: fill in the 'requested' and 'current' depths, also make sure that's
-           why we failed and only show this message once! */
-        MESSAGE("Failed to find exact match, finding alternative but you may "
-            "suffer performance issues, try changing xfree's depth to match the requested depth\n");
+        /* TODO: fill in the 'requested' and 'current' depths, and make sure that's
+           why we failed. */
+        static BOOL show_message = TRUE;
+        if (show_message) {
+            MESSAGE("Failed to find exact match, finding alternative but you may "
+                "suffer performance issues, try changing xfree's depth to match the requested depth\n");
+            show_message = FALSE;
+        }
         nAttribs = 0;
         PUSH2(GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT | GLX_WINDOW_BIT);
         /* PUSH2(GLX_X_RENDERABLE,  TRUE); */


More information about the wine-patches mailing list