Author: greatlrd
Date: Thu Dec 14 02:06:48 2006
New Revision: 25151
URL:
http://svn.reactos.org/svn/reactos?rev=25151&view=rev
Log:
exprement code for GetPxielformat, (manger crash mplayer (the gui version) in the GetDC
api, and maybe for we do not have the clipper implement. yet.
Modified:
trunk/reactos/dll/directx/ddraw/main/surface_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/surface_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main/sur…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main/surface_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main/surface_main.c Thu Dec 14 02:06:48 2006
@@ -43,6 +43,7 @@
}
}
return This->dwIntRefCnt;
+
}
@@ -554,9 +555,20 @@
Main_DDrawSurface_GetPixelFormat(LPDIRECTDRAWSURFACE7 iface,
LPDDPIXELFORMAT pDDPixelFormat)
{
- DX_WINDBG_trace();
-
- DX_STUB;
+ LPDDRAWI_DDRAWSURFACE_INT This = (LPDDRAWI_DDRAWSURFACE_INT)iface;
+ HRESULT retVale = DDERR_INVALIDPARAMS;
+
+ DX_WINDBG_trace();
+
+ /* FIXME is this right ?? */
+ if (pDDPixelFormat != NULL)
+ {
+ memcpy(pDDPixelFormat,&This->lpLcl->lpSurfMore->
+
lpDD_lcl->lpGbl->vmiData.ddpfDisplay,sizeof(DDPIXELFORMAT));
+
+ retVale = DD_OK;
+ }
+ return retVale;
}
HRESULT WINAPI