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
1bf36a3f
Commit
1bf36a3f
authored
Oct 30, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement ddraw_surface7_BltFast() on top of wined3d_surface_blt().
parent
5193f670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
surface.c
dlls/ddraw/surface.c
+14
-5
No files found.
dlls/ddraw/surface.c
View file @
1bf36a3f
...
...
@@ -3700,6 +3700,8 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
IDirectDrawSurfaceImpl
*
src
=
unsafe_impl_from_IDirectDrawSurface7
(
Source
);
DWORD
src_w
,
src_h
,
dst_w
,
dst_h
;
HRESULT
hr
=
DD_OK
;
DWORD
flags
=
0
;
RECT
dst_rect
;
TRACE
(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.
\n
"
,
iface
,
dstx
,
dsty
,
Source
,
wine_dbgstr_rect
(
rsrc
),
trans
);
...
...
@@ -3728,17 +3730,24 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
return
DDERR_INVALIDRECT
;
}
SetRect
(
&
dst_rect
,
dstx
,
dsty
,
dstx
+
src_w
,
dsty
+
src_h
);
if
(
trans
&
DDBLTFAST_SRCCOLORKEY
)
flags
|=
WINEDDBLT_KEYSRC
;
if
(
trans
&
DDBLTFAST_DESTCOLORKEY
)
flags
|=
WINEDDBLT_KEYDEST
;
if
(
trans
&
DDBLTFAST_WAIT
)
flags
|=
WINEDDBLT_WAIT
;
if
(
trans
&
DDBLTFAST_DONOTWAIT
)
flags
|=
WINEDDBLT_DONOTWAIT
;
EnterCriticalSection
(
&
ddraw_cs
);
if
(
src
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_FRONTBUFFER
)
hr
=
ddraw_surface_update_frontbuffer
(
src
,
rsrc
,
TRUE
);
if
(
SUCCEEDED
(
hr
))
hr
=
wined3d_surface_blt
fast
(
This
->
wined3d_surface
,
dstx
,
dsty
,
src
->
wined3d_surface
,
rsrc
,
trans
);
hr
=
wined3d_surface_blt
(
This
->
wined3d_surface
,
&
dst_rect
,
src
->
wined3d_surface
,
rsrc
,
flags
,
NULL
,
WINED3DTEXF_POINT
);
if
(
SUCCEEDED
(
hr
)
&&
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_FRONTBUFFER
))
{
RECT
dst_rect
=
{
dstx
,
dsty
,
dstx
+
src_w
,
dsty
+
src_h
};
hr
=
ddraw_surface_update_frontbuffer
(
This
,
&
dst_rect
,
FALSE
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
switch
(
hr
)
{
...
...
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