Author: greatlrd Date: Sun Dec 16 03:43:22 2007 New Revision: 31267
URL: http://svn.reactos.org/svn/reactos?rev=31267&view=rev Log: fix a bug in createsurface DDSD_LPSURFACE should only be automatic set if we have a system memory surface.
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/c... ============================================================================== --- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original) +++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sun Dec 16 03:43:22 2007 @@ -78,10 +78,10 @@
/* * program does not need set the DDSD_LPSURFACE, - * if they forget set it, the ddraw will autoamtic set it. - * + * if they forget set it, the ddraw will autoamtic + * set it for system memory. */ - if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE) + if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY) { pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE; }