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
c1aaacd5
Commit
c1aaacd5
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: Change IDirect3DTexture2_vtbl to IDirect3DTexture2_iface.
parent
8000fc4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-2
device.c
dlls/ddraw/device.c
+4
-4
surface.c
dlls/ddraw/surface.c
+7
-7
No files found.
dlls/ddraw/ddraw_private.h
View file @
c1aaacd5
...
...
@@ -158,7 +158,7 @@ struct IDirectDrawSurfaceImpl
IDirectDrawSurface2
IDirectDrawSurface2_iface
;
IDirectDrawSurface
IDirectDrawSurface_iface
;
IDirectDrawGammaControl
IDirectDrawGammaControl_iface
;
const
IDirect3DTexture2Vtbl
*
IDirect3DTexture2_vtbl
;
IDirect3DTexture2
IDirect3DTexture2_iface
;
IDirect3DTexture
IDirect3DTexture_iface
;
LONG
ref7
,
ref4
,
ref3
,
ref2
,
ref1
,
iface_count
,
gamma_count
;
...
...
@@ -221,7 +221,7 @@ static inline IDirectDrawSurfaceImpl *impl_from_IDirect3DTexture(IDirect3DTextur
static
inline
IDirectDrawSurfaceImpl
*
impl_from_IDirect3DTexture2
(
IDirect3DTexture2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_
vtbl
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_
iface
);
}
static
inline
IDirectDrawSurfaceImpl
*
impl_from_IDirectDrawSurface
(
IDirectDrawSurface
*
iface
)
...
...
dlls/ddraw/device.c
View file @
c1aaacd5
...
...
@@ -570,8 +570,8 @@ static HRESULT WINAPI IDirect3DDeviceImpl_1_SwapTextureHandles(IDirect3DDevice *
IDirect3DDeviceImpl
*
This
=
device_from_device1
(
iface
);
IDirectDrawSurfaceImpl
*
surf1
=
unsafe_impl_from_IDirect3DTexture
(
D3DTex1
);
IDirectDrawSurfaceImpl
*
surf2
=
unsafe_impl_from_IDirect3DTexture
(
D3DTex2
);
IDirect3DTexture2
*
t1
=
surf1
?
(
IDirect3DTexture2
*
)
&
surf1
->
IDirect3DTexture2_vtbl
:
NULL
;
IDirect3DTexture2
*
t2
=
surf2
?
(
IDirect3DTexture2
*
)
&
surf2
->
IDirect3DTexture2_vtbl
:
NULL
;
IDirect3DTexture2
*
t1
=
surf1
?
&
surf1
->
IDirect3DTexture2_iface
:
NULL
;
IDirect3DTexture2
*
t2
=
surf2
?
&
surf2
->
IDirect3DTexture2_iface
:
NULL
;
TRACE
(
"iface %p, tex1 %p, tex2 %p.
\n
"
,
iface
,
D3DTex1
,
D3DTex2
);
...
...
@@ -2780,7 +2780,7 @@ IDirect3DDeviceImpl_3_SetRenderState(IDirect3DDevice3 *iface,
break
;
}
hr
=
IDirect3DDevice3_SetTexture
(
iface
,
0
,
(
IDirect3DTexture2
*
)
&
surf
->
IDirect3DTexture2_vtbl
);
hr
=
IDirect3DDevice3_SetTexture
(
iface
,
0
,
&
surf
->
IDirect3DTexture2_iface
);
break
;
}
...
...
@@ -4493,7 +4493,7 @@ static HRESULT WINAPI IDirect3DDeviceImpl_3_GetTexture(IDirect3DDevice3 *iface,
ret
=
IDirect3DDevice7_GetTexture
((
IDirect3DDevice7
*
)
device_from_device3
(
iface
),
Stage
,
&
ret_val
);
ret_val_impl
=
unsafe_impl_from_IDirectDrawSurface7
(
ret_val
);
*
Texture2
=
ret_val_impl
?
(
IDirect3DTexture2
*
)
&
ret_val_impl
->
IDirect3DTexture2_vtbl
:
NULL
;
*
Texture2
=
ret_val_impl
?
&
ret_val_impl
->
IDirect3DTexture2_iface
:
NULL
;
TRACE
(
"Returning texture %p.
\n
"
,
*
Texture2
);
...
...
dlls/ddraw/surface.c
View file @
c1aaacd5
...
...
@@ -146,7 +146,7 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
}
else
{
*
obj
=
&
This
->
IDirect3DTexture2_
vtbl
;
*
obj
=
&
This
->
IDirect3DTexture2_
iface
;
TRACE
(
" returning Direct3DTexture2 interface at %p.
\n
"
,
*
obj
);
}
IUnknown_AddRef
(
(
IUnknown
*
)
*
obj
);
...
...
@@ -4454,7 +4454,7 @@ static HRESULT WINAPI d3d_texture1_PaletteChanged(IDirect3DTexture *iface, DWORD
TRACE
(
"iface %p, start %u, count %u.
\n
"
,
iface
,
start
,
count
);
return
d3d_texture2_PaletteChanged
(
(
IDirect3DTexture2
*
)
&
surface
->
IDirect3DTexture2_vtbl
,
start
,
count
);
return
d3d_texture2_PaletteChanged
(
&
surface
->
IDirect3DTexture2_iface
,
start
,
count
);
}
/*****************************************************************************
...
...
@@ -4526,7 +4526,7 @@ static HRESULT WINAPI d3d_texture1_GetHandle(IDirect3DTexture *iface,
TRACE
(
"iface %p, device %p, handle %p.
\n
"
,
iface
,
device
,
handle
);
return
d3d_texture2_GetHandle
(
(
IDirect3DTexture2
*
)
&
This
->
IDirect3DTexture2_vtbl
,
device2
,
handle
);
return
d3d_texture2_GetHandle
(
&
This
->
IDirect3DTexture2_iface
,
device2
,
handle
);
}
/*****************************************************************************
...
...
@@ -4707,8 +4707,8 @@ static HRESULT WINAPI d3d_texture1_Load(IDirect3DTexture *iface, IDirect3DTextur
IDirectDrawSurfaceImpl
*
src_surface
=
unsafe_impl_from_IDirect3DTexture
(
src_texture
);
TRACE
(
"iface %p, src_texture %p.
\n
"
,
iface
,
src_texture
);
return
d3d_texture2_Load
(
(
IDirect3DTexture2
*
)
&
This
->
IDirect3DTexture2_vtbl
,
src_surface
?
(
IDirect3DTexture2
*
)
&
src_surface
->
IDirect3DTexture2_vtbl
:
NULL
);
return
d3d_texture2_Load
(
&
This
->
IDirect3DTexture2_iface
,
src_surface
?
&
src_surface
->
IDirect3DTexture2_iface
:
NULL
);
}
/*****************************************************************************
...
...
@@ -5034,7 +5034,7 @@ IDirectDrawSurfaceImpl *unsafe_impl_from_IDirect3DTexture2(IDirect3DTexture2 *if
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d_texture2_vtbl
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_
vtbl
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirect3DTexture2_
iface
);
}
IDirectDrawSurfaceImpl
*
unsafe_impl_from_IDirect3DTexture
(
IDirect3DTexture
*
iface
)
...
...
@@ -5207,7 +5207,7 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
surface
->
IDirectDrawSurface2_iface
.
lpVtbl
=
&
ddraw_surface2_vtbl
;
surface
->
IDirectDrawSurface_iface
.
lpVtbl
=
&
ddraw_surface1_vtbl
;
surface
->
IDirectDrawGammaControl_iface
.
lpVtbl
=
&
ddraw_gamma_control_vtbl
;
surface
->
IDirect3DTexture2_
v
tbl
=
&
d3d_texture2_vtbl
;
surface
->
IDirect3DTexture2_
iface
.
lpV
tbl
=
&
d3d_texture2_vtbl
;
surface
->
IDirect3DTexture_iface
.
lpVtbl
=
&
d3d_texture1_vtbl
;
surface
->
iface_count
=
1
;
surface
->
version
=
version
;
...
...
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