[D3D 31] Small WARN improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
 Have the 'Lock' warning a bit clearer

-- 
		 Lionel Ulmer - http://www.bbrox.org/
--- ../wine_base/dlls/ddraw/dsurface/main.c	Sat Dec 21 14:46:09 2002
+++ dlls/ddraw/dsurface/main.c	Sat Dec 21 14:46:25 2002
@@ -990,10 +990,10 @@
         TRACE("(%p)->Lock(%p,%p,%08lx,%08lx)\n",This,prect,pDDSD,flags,(DWORD)h);
 	TRACE(" - locking flags : "); DDRAW_dump_lockflag(flags);
     }
-
-    if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY))
-	WARN("(%p)->Lock(%p,%p,%08lx,%08lx)\n",
-		 This,prect,pDDSD,flags,(DWORD)h);
+    if (WARN_ON(ddraw)) {
+	if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY))
+	    WARN(" - unsupported locking flag : "); DDRAW_dump_lockflag(flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY));
+    }
 
     /* First, copy the Surface description */
     DD_STRUCT_COPY_BYSIZE(pDDSD,&(This->surface_desc));

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux