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
0b318566
Commit
0b318566
authored
Nov 02, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_surface_blt() in wined3d_swapchain_get_front_buffer_data().
parent
c30ea376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
swapchain.c
dlls/wined3d/swapchain.c
+12
-5
No files found.
dlls/wined3d/swapchain.c
View file @
0b318566
...
...
@@ -154,16 +154,23 @@ HRESULT CDECL wined3d_swapchain_present(struct wined3d_swapchain *swapchain,
HRESULT
CDECL
wined3d_swapchain_get_front_buffer_data
(
const
struct
wined3d_swapchain
*
swapchain
,
struct
wined3d_surface
*
dst_surface
)
{
POINT
offset
=
{
0
,
0
};
struct
wined3d_surface
*
src_surface
;
RECT
src_rect
,
dst_rect
;
TRACE
(
"swapchain %p, dst_surface %p.
\n
"
,
swapchain
,
dst_surface
);
if
(
swapchain
->
presentParms
.
Windowed
)
MapWindowPoints
(
swapchain
->
win_handle
,
NULL
,
&
offset
,
1
);
src_surface
=
swapchain
->
front_buffer
;
SetRect
(
&
src_rect
,
0
,
0
,
src_surface
->
resource
.
width
,
src_surface
->
resource
.
height
);
dst_rect
=
src_rect
;
surface_bltfast
(
dst_surface
,
offset
.
x
,
offset
.
y
,
swapchain
->
front_buffer
,
NULL
,
0
);
if
(
swapchain
->
presentParms
.
Windowed
)
{
MapWindowPoints
(
swapchain
->
win_handle
,
NULL
,
(
POINT
*
)
&
dst_rect
,
2
);
FIXME
(
"Using destination rect %s in windowed mode, this is likely wrong.
\n
"
,
wine_dbgstr_rect
(
&
dst_rect
));
}
return
WINED3D_OK
;
return
wined3d_surface_blt
(
dst_surface
,
&
dst_rect
,
src_surface
,
&
src_rect
,
0
,
NULL
,
WINED3DTEXF_POINT
)
;
}
HRESULT
CDECL
wined3d_swapchain_get_back_buffer
(
const
struct
wined3d_swapchain
*
swapchain
,
...
...
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