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
e780ee58
Commit
e780ee58
authored
Dec 03, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Return the correct error in ddraw_surface7_Flip() when the surface is not flippable.
parent
66c71bae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
15 deletions
+13
-15
surface.c
dlls/ddraw/surface.c
+1
-3
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+3
-3
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-3
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+3
-3
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+3
-3
No files found.
dlls/ddraw/surface.c
View file @
e780ee58
...
...
@@ -1197,10 +1197,8 @@ static HRESULT WINAPI ddraw_surface7_Flip(IDirectDrawSurface7 *iface, IDirectDra
TRACE
(
"iface %p, dst %p, flags %#x.
\n
"
,
iface
,
DestOverride
,
Flags
);
/* Flip has to be called from a front buffer
* What about overlay surfaces, AFAIK they can flip too? */
if
(
!
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_FRONTBUFFER
|
DDSCAPS_OVERLAY
)))
return
DDERR_
INVALIDOBJECT
;
/* Unchecked */
return
DDERR_
NOTFLIPPABLE
;
wined3d_mutex_lock
();
...
...
dlls/ddraw/tests/ddraw1.c
View file @
e780ee58
...
...
@@ -3625,11 +3625,11 @@ static void test_flip(void)
hr
=
IDirectDrawSurface_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer1
,
NULL
,
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
(
backbuffer2
,
NULL
,
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
(
backbuffer3
,
NULL
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
e780ee58
...
...
@@ -4306,11 +4306,11 @@ static void test_flip(void)
hr
=
IDirectDrawSurface_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Flip
(
backbuffer1
,
NULL
,
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
(
backbuffer2
,
NULL
,
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
(
backbuffer3
,
NULL
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
e780ee58
...
...
@@ -4910,11 +4910,11 @@ static void test_flip(void)
hr
=
IDirectDrawSurface4_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface4_Flip
(
backbuffer1
,
NULL
,
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
(
backbuffer2
,
NULL
,
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
(
backbuffer3
,
NULL
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
e780ee58
...
...
@@ -4797,11 +4797,11 @@ static void test_flip(void)
hr
=
IDirectDrawSurface7_Flip
(
primary
,
primary
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_Flip
(
backbuffer1
,
NULL
,
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
(
backbuffer2
,
NULL
,
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
(
backbuffer3
,
NULL
,
DDFLIP_WAIT
);
todo_wine
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_NOTFLIPPABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
...
...
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