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
88121935
Commit
88121935
authored
Jun 30, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement ddraw7_RestoreAllSurfaces().
parent
8d4988a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
20 deletions
+13
-20
ddraw.c
dlls/ddraw/ddraw.c
+11
-18
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+1
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+1
-1
No files found.
dlls/ddraw/ddraw.c
View file @
88121935
...
...
@@ -2675,27 +2675,20 @@ static HRESULT WINAPI ddraw4_GetSurfaceFromDC(IDirectDraw4 *iface, HDC dc,
return
hr
;
}
/*****************************************************************************
* IDirectDraw7::RestoreAllSurfaces
*
* Calls the restore method of all surfaces
*
* Params:
*
* Returns:
* Always returns DD_OK because it's a stub
*
*****************************************************************************/
static
HRESULT
CALLBACK
restore_callback
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
desc
,
void
*
context
)
{
IDirectDrawSurface_Restore
(
surface
);
IDirectDrawSurface_Release
(
surface
);
return
DDENUMRET_OK
;
}
static
HRESULT
WINAPI
ddraw7_RestoreAllSurfaces
(
IDirectDraw7
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
/* This isn't hard to implement: Enumerate all WineD3D surfaces,
* get their parent and call their restore method. Do not implement
* it in WineD3D, as restoring a surface means re-creating the
* WineD3DDSurface
*/
return
DD_OK
;
return
IDirectDraw7_EnumSurfaces
(
iface
,
DDENUMSURFACES_ALL
|
DDENUMSURFACES_DOESEXIST
,
NULL
,
NULL
,
restore_callback
);
}
static
HRESULT
WINAPI
ddraw4_RestoreAllSurfaces
(
IDirectDraw4
*
iface
)
...
...
dlls/ddraw/tests/ddraw4.c
View file @
88121935
...
...
@@ -7718,7 +7718,7 @@ static void test_lost_device(void)
hr
=
IDirectDraw4_TestCooperativeLevel
(
ddraw
);
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface4_IsLost
(
surface
);
todo_wine
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface4_Release
(
surface
);
refcount
=
IDirectDraw4_Release
(
ddraw
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
88121935
...
...
@@ -7440,7 +7440,7 @@ static void test_lost_device(void)
hr
=
IDirectDraw7_TestCooperativeLevel
(
ddraw
);
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_IsLost
(
surface
);
todo_wine
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DD_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
surface
);
refcount
=
IDirectDraw7_Release
(
ddraw
);
...
...
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