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
cf636cc3
Commit
cf636cc3
authored
Jan 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Allow querying the surface interface if a device was created from a surface.
parent
c70e17e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-0
device.c
dlls/ddraw/device.c
+7
-0
surface.c
dlls/ddraw/surface.c
+1
-0
No files found.
dlls/ddraw/ddraw_private.h
View file @
cf636cc3
...
...
@@ -299,6 +299,8 @@ struct IDirect3DDeviceImpl
/* Required to keep track which of two available texture blending modes in d3ddevice3 is used */
BOOL
legacyTextureBlending
;
BOOL
from_surface
;
D3DMATRIX
legacy_projection
;
D3DMATRIX
legacy_clipspace
;
...
...
dlls/ddraw/device.c
View file @
cf636cc3
...
...
@@ -179,6 +179,13 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
TRACE
(
"(%p) Returning IDirect3DDevice7 interface at %p
\n
"
,
This
,
*
obj
);
}
/* DirectDrawSurface */
else
if
(
IsEqualGUID
(
&
IID_IDirectDrawSurface
,
refiid
)
&&
This
->
from_surface
)
{
*
obj
=
&
This
->
target
->
IDirectDrawSurface_iface
;
TRACE
(
"Returning IDirectDrawSurface interface %p.
\n
"
,
*
obj
);
}
/* Unknown interface */
else
{
...
...
dlls/ddraw/surface.c
View file @
cf636cc3
...
...
@@ -199,6 +199,7 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
if
(
d3d
)
{
device_impl
=
impl_from_IDirect3DDevice7
(
d3d
);
device_impl
->
from_surface
=
TRUE
;
*
obj
=
&
device_impl
->
IDirect3DDevice_iface
;
TRACE
(
"(%p) Returning IDirect3DDevice interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
...
...
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