mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
implement internal api CopyDDSurfDescToDDSurfDesc2
svn path=/trunk/; revision=26735
This commit is contained in:
parent
a54fcea595
commit
9dbe363154
3 changed files with 11 additions and 5 deletions
|
@ -149,11 +149,7 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
|
||||
if (pDDSD->dwSize == sizeof(DDSURFACEDESC))
|
||||
{
|
||||
|
||||
RtlZeroMemory(&dd_desc_v2,sizeof(DDSURFACEDESC2));
|
||||
/* FIXME implement CopyDDSurfDescToDDSurfDesc2
|
||||
CopyDDSurfDescToDDSurfDesc2(&dd_desc_v2,pDDSD);
|
||||
*/
|
||||
CopyDDSurfDescToDDSurfDesc2(&dd_desc_v2,pDDSD);
|
||||
}
|
||||
else if (pDDSD->dwSize == sizeof(DDSURFACEDESC2))
|
||||
{
|
||||
|
|
|
@ -10,6 +10,13 @@
|
|||
#include "rosdraw.h"
|
||||
|
||||
|
||||
void CopyDDSurfDescToDDSurfDesc2(LPDDSURFACEDESC2 dst_pDesc, LPDDSURFACEDESC src_pDesc)
|
||||
{
|
||||
RtlZeroMemory(dst_pDesc,sizeof(DDSURFACEDESC2));
|
||||
RtlCopyMemory(dst_pDesc,src_pDesc,sizeof(DDSURFACEDESC));
|
||||
}
|
||||
|
||||
|
||||
HRESULT
|
||||
CreatePrimarySurface(LPDDRAWI_DIRECTDRAW_INT This,
|
||||
LPDDRAWI_DDRAWSURFACE_INT *That,
|
||||
|
|
|
@ -25,6 +25,9 @@ HRESULT WINAPI StartDirectDrawHel(LPDIRECTDRAW* iface, BOOL reenable);
|
|||
HRESULT WINAPI Create_DirectDraw (LPGUID pGUID, LPDIRECTDRAW* pIface, REFIID id, BOOL ex);
|
||||
HRESULT WINAPI ReCreateDirectDraw(LPDIRECTDRAW* iface);
|
||||
|
||||
/* convert DDSURFACEDESC to DDSURFACEDESC2 */
|
||||
void CopyDDSurfDescToDDSurfDesc2(LPDDSURFACEDESC2 dst_pDesc, LPDDSURFACEDESC src_pDesc);
|
||||
|
||||
/* DirectDraw Cleanup code only internal use */
|
||||
VOID Cleanup(LPDIRECTDRAW7 iface);
|
||||
|
||||
|
|
Loading…
Reference in a new issue