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
223b0736
Commit
223b0736
authored
Jan 04, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Disallow clipped blits in ddraw_surface7_BltFast().
parent
99e5e3ac
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
surface.c
dlls/ddraw/surface.c
+14
-1
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+1
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+1
-1
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+1
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+1
-1
No files found.
dlls/ddraw/surface.c
View file @
223b0736
...
...
@@ -3869,7 +3869,20 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
flags
|=
WINEDDBLT_DONOTWAIT
;
wined3d_mutex_lock
();
hr
=
ddraw_surface_blt_clipped
(
This
,
&
dst_rect
,
src
,
rsrc
,
flags
,
NULL
,
WINED3DTEXF_POINT
);
if
(
This
->
clipper
)
{
wined3d_mutex_unlock
();
WARN
(
"Destination surface has a clipper set, returning DDERR_BLTFASTCANTCLIP.
\n
"
);
return
DDERR_BLTFASTCANTCLIP
;
}
if
(
src
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_FRONTBUFFER
)
hr
=
ddraw_surface_update_frontbuffer
(
src
,
rsrc
,
TRUE
);
if
(
SUCCEEDED
(
hr
))
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
))
hr
=
ddraw_surface_update_frontbuffer
(
This
,
&
dst_rect
,
FALSE
);
wined3d_mutex_unlock
();
switch
(
hr
)
...
...
dlls/ddraw/tests/ddraw1.c
View file @
223b0736
...
...
@@ -332,7 +332,7 @@ static void test_clipper_blt(void)
}
hr
=
IDirectDrawSurface_BltFast
(
dst_surface
,
0
,
0
,
src_surface
,
NULL
,
DDBLTFAST_WAIT
);
todo_wine
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
||
broken
(
hr
==
E_NOTIMPL
/* NT4 */
),
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
||
broken
(
hr
==
E_NOTIMPL
/* NT4 */
),
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface_Release
(
dst_surface
);
IDirectDrawSurface_Release
(
src_surface
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
223b0736
...
...
@@ -339,7 +339,7 @@ static void test_clipper_blt(void)
}
hr
=
IDirectDrawSurface_BltFast
(
dst_surface
,
0
,
0
,
src_surface
,
NULL
,
DDBLTFAST_WAIT
);
todo_wine
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
||
broken
(
hr
==
E_NOTIMPL
/* NT4 */
),
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
||
broken
(
hr
==
E_NOTIMPL
/* NT4 */
),
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface_Release
(
dst_surface
);
IDirectDrawSurface_Release
(
src_surface
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
223b0736
...
...
@@ -634,7 +634,7 @@ static void test_clipper_blt(void)
}
hr
=
IDirectDrawSurface4_BltFast
(
dst_surface
,
0
,
0
,
src_surface
,
NULL
,
DDBLTFAST_WAIT
);
todo_wine
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
,
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface4_Release
(
dst_surface
);
IDirectDrawSurface4_Release
(
src_surface
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
223b0736
...
...
@@ -627,7 +627,7 @@ static void test_clipper_blt(void)
}
hr
=
IDirectDrawSurface7_BltFast
(
dst_surface
,
0
,
0
,
src_surface
,
NULL
,
DDBLTFAST_WAIT
);
todo_wine
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_BLTFASTCANTCLIP
,
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
dst_surface
);
IDirectDrawSurface7_Release
(
src_surface
);
...
...
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