[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    ddraw: Display fixme only once in IDirectDrawImpl_WaitForVerticalBlank
From:       Christian Costa <titan.costa () wanadoo ! fr>
Date:       2008-12-31 12:15:05
Message-ID: 495B6249.9000709 () wanadoo ! fr
[Download RAW message or body]

Can be noisy so display fixme only once.


["ddraw.diff" (text/x-patch)]

commit 33e4f09254b843c402587375e22483f3d7f9c624
Author: Christian Costa <titan.costa@wanadoo.fr>
Date:   Wed Dec 31 13:13:37 2008 +0100

    Display fixme only once in IDirectDrawImpl_WaitForVerticalBlank.

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 8033b15..7024a0f 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -1107,7 +1107,14 @@ IDirectDrawImpl_WaitForVerticalBlank(IDirectDraw7 *iface,
                                      HANDLE h)
 {
     ICOM_THIS_FROM(IDirectDrawImpl, IDirectDraw7, iface);
-    FIXME("(%p)->(%x,%p): Stub\n", This, Flags, h);
+    static BOOL hide = FALSE;
+
+    /* This function is called often, so print the fixme only once */
+    if(!hide)
+    {
+        FIXME("(%p)->(%x,%p): Stub\n", This, Flags, h);
+        hide = TRUE;
+    }
 
     /* MSDN says DDWAITVB_BLOCKBEGINEVENT is not supported */
     if(Flags & DDWAITVB_BLOCKBEGINEVENT)




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic