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
8000fc4e
Commit
8000fc4e
authored
Jul 29, 2011
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Jul 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Rename surface_from_texture2 to impl_from_IDirect3DTexture2.
parent
15f16e8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-2
surface.c
dlls/ddraw/surface.c
+5
-5
No files found.
dlls/ddraw/ddraw_private.h
View file @
8000fc4e
...
...
@@ -219,9 +219,9 @@ static inline IDirectDrawSurfaceImpl *impl_from_IDirect3DTexture(IDirect3DTextur
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture_iface
);
}
static
inline
IDirectDrawSurfaceImpl
*
surface_from_t
exture2
(
IDirect3DTexture2
*
iface
)
static
inline
IDirectDrawSurfaceImpl
*
impl_from_IDirect3DT
exture2
(
IDirect3DTexture2
*
iface
)
{
return
(
IDirectDrawSurfaceImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_vtbl
);
}
static
inline
IDirectDrawSurfaceImpl
*
impl_from_IDirectDrawSurface
(
IDirectDrawSurface
*
iface
)
...
...
dlls/ddraw/surface.c
View file @
8000fc4e
...
...
@@ -201,7 +201,7 @@ static HRESULT WINAPI ddraw_gamma_control_QueryInterface(IDirectDrawGammaControl
static
HRESULT
WINAPI
d3d_texture2_QueryInterface
(
IDirect3DTexture2
*
iface
,
REFIID
riid
,
void
**
object
)
{
IDirectDrawSurfaceImpl
*
This
=
surface_from_t
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirect3DT
exture2
(
iface
);
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
return
ddraw_surface7_QueryInterface
(
&
This
->
IDirectDrawSurface7_iface
,
riid
,
object
);
...
...
@@ -332,7 +332,7 @@ static ULONG WINAPI ddraw_gamma_control_AddRef(IDirectDrawGammaControl *iface)
static
ULONG
WINAPI
d3d_texture2_AddRef
(
IDirect3DTexture2
*
iface
)
{
IDirectDrawSurfaceImpl
*
This
=
surface_from_t
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirect3DT
exture2
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
return
ddraw_surface1_AddRef
(
&
This
->
IDirectDrawSurface_iface
);
...
...
@@ -615,7 +615,7 @@ static ULONG WINAPI ddraw_gamma_control_Release(IDirectDrawGammaControl *iface)
static
ULONG
WINAPI
d3d_texture2_Release
(
IDirect3DTexture2
*
iface
)
{
IDirectDrawSurfaceImpl
*
This
=
surface_from_t
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirect3DT
exture2
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
return
ddraw_surface1_Release
(
&
This
->
IDirectDrawSurface_iface
);
...
...
@@ -4491,7 +4491,7 @@ static HRESULT WINAPI d3d_texture1_Unload(IDirect3DTexture *iface)
static
HRESULT
WINAPI
d3d_texture2_GetHandle
(
IDirect3DTexture2
*
iface
,
IDirect3DDevice2
*
device
,
D3DTEXTUREHANDLE
*
handle
)
{
IDirectDrawSurfaceImpl
*
surface
=
surface_from_t
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
surface
=
impl_from_IDirect3DT
exture2
(
iface
);
TRACE
(
"iface %p, device %p, handle %p.
\n
"
,
iface
,
device
,
handle
);
...
...
@@ -4571,7 +4571,7 @@ static IDirectDrawSurfaceImpl *get_sub_mimaplevel(IDirectDrawSurfaceImpl *surfac
*****************************************************************************/
static
HRESULT
WINAPI
d3d_texture2_Load
(
IDirect3DTexture2
*
iface
,
IDirect3DTexture2
*
src_texture
)
{
IDirectDrawSurfaceImpl
*
dst_surface
=
surface_from_t
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
dst_surface
=
impl_from_IDirect3DT
exture2
(
iface
);
IDirectDrawSurfaceImpl
*
src_surface
=
unsafe_impl_from_IDirect3DTexture2
(
src_texture
);
HRESULT
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