H. Verbeet : wined3d: Show the MESSAGE in device_find_fbconfigs()
only once .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 27 03:46:04 CDT 2006
Module: wine
Branch: master
Commit: 4bc812564888d19029438443ee52627c2c86730e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4bc812564888d19029438443ee52627c2c86730e
Author: H. Verbeet <hverbeet at gmail.com>
Date: Tue Sep 26 20:31:23 2006 +0200
wined3d: Show the MESSAGE in device_find_fbconfigs() only once.
---
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..d49653b 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) {
+ ERR("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-cvs
mailing list