Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
23bf5025
Commit
23bf5025
authored
Dec 20, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Cleanup IWineD3DDeviceImpl_GetRasterStatus().
parent
76804fa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
device.c
dlls/wined3d/device.c
+21
-13
No files found.
dlls/wined3d/device.c
View file @
23bf5025
...
...
@@ -4976,24 +4976,32 @@ static BOOL WINAPI IWineD3DDeviceImpl_GetSoftwareVertexProcessing(IWineD3DD
return
This
->
softwareVertexProcessing
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRasterStatus
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DRASTER_STATUS
*
pRasterStatus
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swap
C
hain
;
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRasterStatus
(
IWineD3DDevice
*
iface
,
UINT
swapchain_idx
,
WINED3DRASTER_STATUS
*
raster_status
)
{
IWineD3DSwapChain
*
swap
c
hain
;
HRESULT
hr
;
TRACE
(
"(%p) : SwapChain %d returning %p
\n
"
,
This
,
iSwapChain
,
pRasterStatus
);
TRACE
(
"iface %p, swapchain_idx %u, raster_status %p.
\n
"
,
iface
,
swapchain_idx
,
raster_status
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapChain
);
if
(
hr
==
WINED3D_OK
){
hr
=
IWineD3DSwapChain_GetRasterStatus
(
swapChain
,
pRasterStatus
);
IWineD3DSwapChain_Release
(
swapChain
);
}
else
{
FIXME
(
"(%p) IWineD3DSwapChain_GetRasterStatus returned in error
\n
"
,
This
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
swapchain_idx
,
&
swapchain
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get swapchain %u, hr %#x.
\n
"
,
swapchain_idx
,
hr
);
return
hr
;
}
return
hr
;
}
hr
=
IWineD3DSwapChain_GetRasterStatus
(
swapchain
,
raster_status
);
IWineD3DSwapChain_Release
(
swapchain
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get raster status, hr %#x.
\n
"
,
hr
);
return
hr
;
}
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetNPatchMode
(
IWineD3DDevice
*
iface
,
float
nSegments
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
...
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