fix a typo

svn path=/trunk/; revision=31268
This commit is contained in:
Magnus Olsen 2007-12-16 00:46:43 +00:00
parent dbd6da8f76
commit 2dd0e4bc06

View file

@ -81,7 +81,7 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
* if they forget set it, the ddraw will autoamtic
* set it for system memory.
*/
if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY)
if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY)
{
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
}