ReactOS
0.4.16-dev-433-g6363f78
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
d3d9_cursor.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS ReactX
4
* FILE: dll/directx/d3d9/d3d9_cursor.c
5
* PURPOSE: d3d9.dll internal cursor methods
6
* PROGRAMERS: Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com>
7
*/
8
#include "
d3d9_cursor.h
"
9
10
#include <debug.h>
11
#include <
d3d9.h
>
12
#include "
d3d9_private.h
"
13
#include "
adapter.h
"
14
#include "
d3d9_device.h
"
15
#include "
d3d9_swapchain.h
"
16
#include "
d3d9_helpers.h
"
17
18
D3D9Cursor
*
CreateD3D9Cursor
(
struct
_Direct3DDevice9_INT
* pBaseDevice,
struct
_Direct3DSwapChain9_INT
* pSwapChain)
19
{
20
D3D9Cursor
* pCursor;
21
22
if
(
FAILED
(
AlignedAlloc
((
LPVOID
*)&pCursor,
sizeof
(
D3D9Cursor
))))
23
{
24
DPRINT1
(
"Failed to allocate D3D9Cursor"
);
25
return
NULL
;
26
}
27
28
pCursor->
pBaseDevice
= pBaseDevice;
29
pCursor->
pSwapChain
= pSwapChain;
30
pCursor->
dwWidth
= pSwapChain->
dwWidth
/ 2;
31
pCursor->
dwHeight
= pSwapChain->
dwHeight
/ 2;
32
33
return
pCursor;
34
}
DPRINT1
#define DPRINT1
Definition:
precomp.h:8
d3d9.h
CreateD3D9Cursor
D3D9Cursor * CreateD3D9Cursor(struct _Direct3DDevice9_INT *pBaseDevice, struct _Direct3DSwapChain9_INT *pSwapChain)
Definition:
d3d9_cursor.c:18
d3d9_cursor.h
d3d9_device.h
AlignedAlloc
HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize)
Definition:
d3d9_helpers.c:95
d3d9_helpers.h
d3d9_swapchain.h
NULL
#define NULL
Definition:
types.h:112
adapter.h
void
Definition:
nsiface.idl:2307
FAILED
#define FAILED(hr)
Definition:
intsafe.h:51
_D3D9Cursor
Definition:
d3d9_cursor.h:14
_D3D9Cursor::dwHeight
DWORD dwHeight
Definition:
d3d9_cursor.h:22
_D3D9Cursor::pBaseDevice
struct _Direct3DDevice9_INT * pBaseDevice
Definition:
d3d9_cursor.h:24
_D3D9Cursor::pSwapChain
struct _Direct3DSwapChain9_INT * pSwapChain
Definition:
d3d9_cursor.h:25
_D3D9Cursor::dwWidth
DWORD dwWidth
Definition:
d3d9_cursor.h:21
_Direct3DDevice9_INT
Definition:
d3d9_device.h:87
_Direct3DSwapChain9_INT
Definition:
d3d9_swapchain.h:19
_Direct3DSwapChain9_INT::dwHeight
DWORD dwHeight
Definition:
d3d9_swapchain.h:40
_Direct3DSwapChain9_INT::dwWidth
DWORD dwWidth
Definition:
d3d9_swapchain.h:39
d3d9_private.h
dll
directx
d3d9
d3d9_cursor.c
Generated on Tue Jan 7 2025 06:07:30 for ReactOS by
1.9.6