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
ab8d59c2
Commit
ab8d59c2
authored
Dec 04, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Reject flips of surfaces with themselves.
parent
3b6d06e3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
surface.c
dlls/ddraw/surface.c
+1
-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 @
ab8d59c2
...
...
@@ -1197,7 +1197,7 @@ static HRESULT WINAPI ddraw_surface7_Flip(IDirectDrawSurface7 *iface, IDirectDra
TRACE
(
"iface %p, dst %p, flags %#x.
\n
"
,
iface
,
DestOverride
,
Flags
);
if
(
!
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_FRONTBUFFER
|
DDSCAPS_OVERLAY
)))
if
(
DestOverride
==
iface
||
!
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_FRONTBUFFER
|
DDSCAPS_OVERLAY
)))
return
DDERR_NOTFLIPPABLE
;
wined3d_mutex_lock
();
...
...
dlls/ddraw/tests/ddraw1.c
View file @
ab8d59c2
...
...
@@ -3623,7 +3623,7 @@ static void test_flip(void)
IDirectDrawSurface_Release
(
surface
);
hr
=
IDirectDrawSurface_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer1
,
NULL
,
DDFLIP_WAIT
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer2
,
NULL
,
DDFLIP_WAIT
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
ab8d59c2
...
...
@@ -4304,7 +4304,7 @@ static void test_flip(void)
IDirectDrawSurface_Release
(
surface
);
hr
=
IDirectDrawSurface_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer1
,
NULL
,
DDFLIP_WAIT
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer2
,
NULL
,
DDFLIP_WAIT
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
ab8d59c2
...
...
@@ -4908,7 +4908,7 @@ static void test_flip(void)
IDirectDrawSurface4_Release
(
surface
);
hr
=
IDirectDrawSurface4_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface4_Flip
(
backbuffer1
,
NULL
,
DDFLIP_WAIT
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface4_Flip
(
backbuffer2
,
NULL
,
DDFLIP_WAIT
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
ab8d59c2
...
...
@@ -4795,7 +4795,7 @@ static void test_flip(void)
IDirectDrawSurface7_Release
(
surface
);
hr
=
IDirectDrawSurface7_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_Flip
(
backbuffer1
,
NULL
,
DDFLIP_WAIT
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_Flip
(
backbuffer2
,
NULL
,
DDFLIP_WAIT
);
...
...
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