[D3D 31] Small WARN improvements
Lionel Ulmer
lionel.ulmer at free.fr
Sat Dec 21 07:49:34 CST 2002
Changelog:
Have the 'Lock' warning a bit clearer
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- ../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));
More information about the wine-patches
mailing list