2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS ReactX
4 * FILE: dll/directx/d3d9/d3d9_cursor.h
5 * PURPOSE: d3d9.dll internal cursor methods
6 * PROGRAMERS: Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com>
8 #include "d3d9_cursor.h"
12 #include "d3d9_private.h"
14 #include "d3d9_device.h"
15 #include "d3d9_swapchain.h"
16 #include "d3d9_helpers.h"
18 D3D9Cursor
* CreateD3D9Cursor(struct _Direct3DDevice9_INT
* pBaseDevice
, struct _Direct3DSwapChain9_INT
* pSwapChain
)
22 if (FAILED(AlignedAlloc((LPVOID
*)&pCursor
, sizeof(D3D9Cursor
))))
24 DPRINT1("Failed to allocate D3D9Cursor");
28 pCursor
->pBaseDevice
= pBaseDevice
;
29 pCursor
->pSwapChain
= pSwapChain
;
30 pCursor
->dwWidth
= pSwapChain
->dwWidth
/ 2;
31 pCursor
->dwHeight
= pSwapChain
->dwHeight
/ 2;