Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
617efafe
Commit
617efafe
authored
Apr 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't use IWineD3DDeviceImpl_GetSwapChain() in IWineD3DDeviceImpl_Present().
It adds COM overhead and validation of the swapchain index, but we already know the index is valid.
parent
0b8bfd97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
device.c
dlls/wined3d/device.c
+11
-13
No files found.
dlls/wined3d/device.c
View file @
617efafe
...
...
@@ -4778,22 +4778,20 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface)
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Present
(
IWineD3DDevice
*
iface
,
const
RECT
*
pSourceRect
,
const
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
const
RGNDATA
*
pDirtyRegion
)
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Present
(
IWineD3DDevice
*
iface
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
)
{
IWineD3DSwapChain
*
swapChain
=
NULL
;
int
i
;
int
swapchains
=
IWineD3DDeviceImpl_GetNumberOfSwapChains
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
UINT
i
;
for
(
i
=
0
;
i
<
swapchains
;
i
++
)
{
TRACE
(
"iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p.
\n
"
,
iface
,
wine_dbgstr_rect
(
src_rect
),
wine_dbgstr_rect
(
dst_rect
),
dst_window_override
,
dirty_region
);
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
i
,
&
swapChain
);
TRACE
(
"Presenting chain %d, %p.
\n
"
,
i
,
swapChain
);
IWineD3DSwapChain_Present
(
swapChain
,
pSourceRect
,
pDestRect
,
hDestWindowOverride
,
pDirtyRegion
,
0
);
IWineD3DSwapChain_Release
(
swapChain
);
for
(
i
=
0
;
i
<
device
->
swapchain_count
;
++
i
)
{
IWineD3DSwapChain_Present
(
(
IWineD3DSwapChain
*
)
device
->
swapchains
[
i
],
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
0
);
}
return
WINED3D_OK
;
...
...
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