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
d38f535c
Commit
d38f535c
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: Correctly retrieve the "outer" surface in IDirectDraw3Impl_GetSurfaceFromDC().
parent
6ae96807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
ddraw.c
dlls/ddrawex/ddraw.c
+16
-3
No files found.
dlls/ddrawex/ddraw.c
View file @
d38f535c
...
...
@@ -1333,17 +1333,30 @@ IDirectDraw3Impl_GetSurfaceFromDC(IDirectDraw3 *iface,
IDirectDrawSurface
**
Surface
)
{
IDirectDrawImpl
*
This
=
impl_from_dd3
(
iface
);
IDirectDrawSurface4
*
surf4
;
IDirectDrawSurface4
*
surf4
,
*
outer
;
IDirectDrawSurface
*
inner
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p, %p): Thunking to IDirectDraw4
\n
"
,
This
,
hdc
,
Surface
);
hr
=
IDirectDraw4_GetSurfaceFromDC
(
dd4_from_impl
(
This
),
hdc
,
&
surf4
);
if
(
!
Surface
)
return
E_POINTER
;
hr
=
IDirectDraw4_GetSurfaceFromDC
(
This
->
parent
,
hdc
,
(
IDirectDrawSurface4
**
)
&
inner
);
if
(
FAILED
(
hr
))
{
*
Surface
=
NULL
;
return
hr
;
}
IDirectDrawSurface4_QueryInterface
(
surf4
,
&
IID_IDirectDrawSurface
,
(
void
**
)
Surface
);
hr
=
IDirectDrawSurface_QueryInterface
(
inner
,
&
IID_IDirectDrawSurface4
,
(
void
**
)
&
surf4
);
IDirectDrawSurface_Release
(
inner
);
if
(
FAILED
(
hr
))
{
*
Surface
=
NULL
;
return
hr
;
}
outer
=
dds_get_outer
(
surf4
);
hr
=
IDirectDrawSurface4_QueryInterface
(
outer
,
&
IID_IDirectDrawSurface
,
(
void
**
)
Surface
);
IDirectDrawSurface4_Release
(
surf4
);
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