DXGL r425 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r424
|
r425
|
r426
>
Date:
13:37, 13 April 2014
Author:
admin
Status:
new
Tags:
Comment:
Support IDirectDraw4/IDirectDraw7::RestoreAllSurfaces
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1624,9 +1624,11 @@
1625
1625
{
1626
1626
TRACE_ENTER(1,14,this);
1627
1627
if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
1628
- FIXME("IDirectDraw::RestoreAllSurfaces: stub\n");
1629
- TRACE_EXIT(23,DDERR_GENERIC);
1630
- ERR(DDERR_GENERIC);
1628
+ for (int i = 0; i < surfacecount; i++)
1629
+ {
1630
+ if (surfaces[i]) surfaces[i]->Restore();
1631
+ }
1632
+ return DD_OK;
1631
1633
}
1632
1634
HRESULT WINAPI glDirectDraw7::TestCooperativeLevel()
1633
1635
{
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version