Fix wrong syntax, missing file and non existing module in makefile. Thanks to Salamander and Usurp.

svn path=/trunk/; revision=17200
This commit is contained in:
Maarten Bosma 2005-08-08 14:19:20 +00:00
parent 2cacd67bcc
commit f276da4448
3 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,6 @@
<library>d3d8thk</library>
<library>dxguid</library>
<library>ole32</library>
<library>dciman32</library>
<file>main.c</file>
<file>regsvr.c</file>

View file

@ -86,7 +86,7 @@ HRESULT WINAPI Main_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidt
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
// this only for exclusive mode
if(!This->cooperative_level & DDSCL_EXCLUSIVE)
if(!(This->cooperative_level & DDSCL_EXCLUSIVE))
return DDERR_NOEXCLUSIVEMODE;
// change the resolution using normal WinAPI function

View file

@ -21,7 +21,7 @@ HRESULT WINAPI Main_DDrawSurface_Initialize (LPDIRECTDRAWSURFACE7 iface, LPDIREC
if(sizeof(DDSURFACEDESC2) != pDDSD->dwSize)
return DDERR_UNSUPPORTED;
if(!pDDSD->dwFlags & DDSD_CAPS)
if(!(pDDSD->dwFlags & DDSD_CAPS))
return DDERR_INVALIDPARAMS;
This->owner = (IDirectDrawImpl*)pDD;