Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9fb039bb
Commit
9fb039bb
authored
Sep 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_RSGetViewports().
parent
69a63024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
device.c
dlls/d3d10core/device.c
+25
-1
No files found.
dlls/d3d10core/device.c
View file @
9fb039bb
...
@@ -582,7 +582,31 @@ static void STDMETHODCALLTYPE d3d10_device_RSGetState(ID3D10Device *iface, ID3D1
...
@@ -582,7 +582,31 @@ static void STDMETHODCALLTYPE d3d10_device_RSGetState(ID3D10Device *iface, ID3D1
static
void
STDMETHODCALLTYPE
d3d10_device_RSGetViewports
(
ID3D10Device
*
iface
,
static
void
STDMETHODCALLTYPE
d3d10_device_RSGetViewports
(
ID3D10Device
*
iface
,
UINT
*
viewport_count
,
D3D10_VIEWPORT
*
viewports
)
UINT
*
viewport_count
,
D3D10_VIEWPORT
*
viewports
)
{
{
FIXME
(
"iface %p, viewport_count %p, viewports %p stub!
\n
"
,
iface
,
viewport_count
,
viewports
);
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
wined3d_viewport
wined3d_vp
;
TRACE
(
"iface %p, viewport_count %p, viewports %p.
\n
"
,
iface
,
viewport_count
,
viewports
);
if
(
!
viewports
)
{
*
viewport_count
=
1
;
return
;
}
if
(
!*
viewport_count
)
return
;
wined3d_device_get_viewport
(
device
->
wined3d_device
,
&
wined3d_vp
);
viewports
[
0
].
TopLeftX
=
wined3d_vp
.
x
;
viewports
[
0
].
TopLeftY
=
wined3d_vp
.
y
;
viewports
[
0
].
Width
=
wined3d_vp
.
width
;
viewports
[
0
].
Height
=
wined3d_vp
.
height
;
viewports
[
0
].
MinDepth
=
wined3d_vp
.
min_z
;
viewports
[
0
].
MaxDepth
=
wined3d_vp
.
max_z
;
if
(
*
viewport_count
>
1
)
memset
(
&
viewports
[
1
],
0
,
(
*
viewport_count
-
1
)
*
sizeof
(
*
viewports
));
}
}
static
void
STDMETHODCALLTYPE
d3d10_device_RSGetScissorRects
(
ID3D10Device
*
iface
,
UINT
*
rect_count
,
D3D10_RECT
*
rects
)
static
void
STDMETHODCALLTYPE
d3d10_device_RSGetScissorRects
(
ID3D10Device
*
iface
,
UINT
*
rect_count
,
D3D10_RECT
*
rects
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment