ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

d3d9_cursor.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:       See COPYING in the top level directory
00003  * PROJECT:         ReactOS ReactX
00004  * FILE:            dll/directx/d3d9/d3d9_cursor.h
00005  * PURPOSE:         d3d9.dll internal cursor methods
00006  * PROGRAMERS:      Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com>
00007  */
00008 #include "d3d9_cursor.h"
00009 
00010 #include <debug.h>
00011 #include <d3d9.h>
00012 #include "d3d9_private.h"
00013 #include "adapter.h"
00014 #include "d3d9_device.h"
00015 #include "d3d9_swapchain.h"
00016 #include "d3d9_helpers.h"
00017 
00018 D3D9Cursor* CreateD3D9Cursor(struct _Direct3DDevice9_INT* pBaseDevice, struct _Direct3DSwapChain9_INT* pSwapChain)
00019 {
00020     D3D9Cursor* pCursor;
00021     
00022     if (FAILED(AlignedAlloc((LPVOID*)&pCursor, sizeof(D3D9Cursor))))
00023     {
00024         DPRINT1("Failed to allocate D3D9Cursor");
00025         return NULL;
00026     }
00027 
00028     pCursor->pBaseDevice = pBaseDevice;
00029     pCursor->pSwapChain = pSwapChain;
00030     pCursor->dwWidth = pSwapChain->dwWidth / 2;
00031     pCursor->dwHeight = pSwapChain->dwHeight / 2;
00032 
00033     return pCursor;
00034 }

Generated on Sat May 26 2012 04:19:51 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.