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
6ae96807
Commit
6ae96807
authored
Mar 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex: Directly return the ddraw surface in IDirectDraw4Impl_GetSurfaceFromDC().
parent
7bfe6c43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
ddraw.c
dlls/ddrawex/ddraw.c
+1
-12
No files found.
dlls/ddrawex/ddraw.c
View file @
6ae96807
...
@@ -1320,20 +1320,9 @@ IDirectDraw4Impl_GetSurfaceFromDC(IDirectDraw4 *iface,
...
@@ -1320,20 +1320,9 @@ IDirectDraw4Impl_GetSurfaceFromDC(IDirectDraw4 *iface,
IDirectDrawSurface4
**
Surface
)
IDirectDrawSurface4
**
Surface
)
{
{
IDirectDrawImpl
*
This
=
impl_from_dd4
(
iface
);
IDirectDrawImpl
*
This
=
impl_from_dd4
(
iface
);
IDirectDrawSurface4
*
inner
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
hdc
,
Surface
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
hdc
,
Surface
);
hr
=
IDirectDraw4_GetSurfaceFromDC
(
This
->
parent
,
hdc
,
&
inner
);
hr
=
IDirectDraw4_GetSurfaceFromDC
(
This
->
parent
,
hdc
,
Surface
);
if
(
SUCCEEDED
(
hr
))
{
*
Surface
=
dds_get_outer
(
inner
);
IDirectDrawSurface4_AddRef
(
*
Surface
);
IDirectDrawSurface4_Release
(
inner
);
}
else
{
*
Surface
=
NULL
;
}
return
hr
;
return
hr
;
}
}
...
...
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