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
93dfe5af
Commit
93dfe5af
authored
Jun 06, 2011
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use impl_from_IDirectDrawSurface7() instead of casts.
parent
11bf99c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
61 deletions
+66
-61
ddraw.c
dlls/ddraw/ddraw.c
+11
-11
ddraw_private.h
dlls/ddraw/ddraw_private.h
+5
-0
device.c
dlls/ddraw/device.c
+1
-1
main.c
dlls/ddraw/main.c
+1
-1
surface.c
dlls/ddraw/surface.c
+48
-48
No files found.
dlls/ddraw/ddraw.c
View file @
93dfe5af
...
@@ -2058,7 +2058,7 @@ static HRESULT WINAPI ddraw3_GetGDISurface(IDirectDraw3 *iface, IDirectDrawSurfa
...
@@ -2058,7 +2058,7 @@ static HRESULT WINAPI ddraw3_GetGDISurface(IDirectDraw3 *iface, IDirectDrawSurfa
*
surface
=
NULL
;
*
surface
=
NULL
;
return
hr
;
return
hr
;
}
}
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface7
;
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface7
)
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
...
@@ -2079,7 +2079,7 @@ static HRESULT WINAPI ddraw2_GetGDISurface(IDirectDraw2 *iface, IDirectDrawSurfa
...
@@ -2079,7 +2079,7 @@ static HRESULT WINAPI ddraw2_GetGDISurface(IDirectDraw2 *iface, IDirectDrawSurfa
*
surface
=
NULL
;
*
surface
=
NULL
;
return
hr
;
return
hr
;
}
}
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface7
;
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface7
)
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
...
@@ -2100,7 +2100,7 @@ static HRESULT WINAPI ddraw1_GetGDISurface(IDirectDraw *iface, IDirectDrawSurfac
...
@@ -2100,7 +2100,7 @@ static HRESULT WINAPI ddraw1_GetGDISurface(IDirectDraw *iface, IDirectDrawSurfac
*
surface
=
NULL
;
*
surface
=
NULL
;
return
hr
;
return
hr
;
}
}
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface7
;
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface7
)
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
*
surface
=
(
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
...
@@ -2472,7 +2472,7 @@ static HRESULT WINAPI ddraw4_GetSurfaceFromDC(IDirectDraw4 *iface, HDC dc,
...
@@ -2472,7 +2472,7 @@ static HRESULT WINAPI ddraw4_GetSurfaceFromDC(IDirectDraw4 *iface, HDC dc,
*
surface
=
NULL
;
*
surface
=
NULL
;
return
hr
;
return
hr
;
}
}
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface7
;
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface7
)
;
/* Tests say this is true */
/* Tests say this is true */
*
surface
=
(
IDirectDrawSurface4
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
*
surface
=
(
IDirectDrawSurface4
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
;
...
@@ -2571,7 +2571,7 @@ static HRESULT WINAPI ddraw7_StartModeTest(IDirectDraw7 *iface, SIZE *Modes, DWO
...
@@ -2571,7 +2571,7 @@ static HRESULT WINAPI ddraw7_StartModeTest(IDirectDraw7 *iface, SIZE *Modes, DWO
*****************************************************************************/
*****************************************************************************/
HRESULT
WINAPI
ddraw_recreate_surfaces_cb
(
IDirectDrawSurface7
*
surf
,
DDSURFACEDESC2
*
desc
,
void
*
Context
)
HRESULT
WINAPI
ddraw_recreate_surfaces_cb
(
IDirectDrawSurface7
*
surf
,
DDSURFACEDESC2
*
desc
,
void
*
Context
)
{
{
IDirectDrawSurfaceImpl
*
surfImpl
=
(
IDirectDrawSurfaceImpl
*
)
surf
;
IDirectDrawSurfaceImpl
*
surfImpl
=
impl_from_IDirectDrawSurface7
(
surf
)
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
struct
wined3d_resource
*
wined3d_resource
;
IDirectDrawImpl
*
This
=
surfImpl
->
ddraw
;
IDirectDrawImpl
*
This
=
surfImpl
->
ddraw
;
...
@@ -3785,7 +3785,7 @@ struct surfacescallback_context
...
@@ -3785,7 +3785,7 @@ struct surfacescallback_context
static
HRESULT
CALLBACK
EnumSurfacesCallbackThunk
(
IDirectDrawSurface7
*
surface
,
static
HRESULT
CALLBACK
EnumSurfacesCallbackThunk
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
surface_desc
,
void
*
context
)
DDSURFACEDESC2
*
surface_desc
,
void
*
context
)
{
{
IDirectDrawSurfaceImpl
*
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface
;
IDirectDrawSurfaceImpl
*
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface
)
;
struct
surfacescallback_context
*
cbcontext
=
context
;
struct
surfacescallback_context
*
cbcontext
=
context
;
return
cbcontext
->
func
((
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
,
return
cbcontext
->
func
((
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
,
...
@@ -4236,7 +4236,7 @@ static HRESULT WINAPI ddraw3_DuplicateSurface(IDirectDraw3 *iface, IDirectDrawSu
...
@@ -4236,7 +4236,7 @@ static HRESULT WINAPI ddraw3_DuplicateSurface(IDirectDraw3 *iface, IDirectDrawSu
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
dst_impl
=
(
IDirectDrawSurfaceImpl
*
)
dst7
;
dst_impl
=
impl_from_IDirectDrawSurface7
(
dst7
)
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
}
}
...
@@ -4254,7 +4254,7 @@ static HRESULT WINAPI ddraw2_DuplicateSurface(IDirectDraw2 *iface,
...
@@ -4254,7 +4254,7 @@ static HRESULT WINAPI ddraw2_DuplicateSurface(IDirectDraw2 *iface,
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
dst_impl
=
(
IDirectDrawSurfaceImpl
*
)
dst7
;
dst_impl
=
impl_from_IDirectDrawSurface7
(
dst7
)
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
}
}
...
@@ -4272,7 +4272,7 @@ static HRESULT WINAPI ddraw1_DuplicateSurface(IDirectDraw *iface, IDirectDrawSur
...
@@ -4272,7 +4272,7 @@ static HRESULT WINAPI ddraw1_DuplicateSurface(IDirectDraw *iface, IDirectDrawSur
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
hr
=
ddraw7_DuplicateSurface
(
&
This
->
IDirectDraw7_iface
,
(
IDirectDrawSurface7
*
)
src_impl
,
&
dst7
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
dst_impl
=
(
IDirectDrawSurfaceImpl
*
)
dst7
;
dst_impl
=
impl_from_IDirectDrawSurface7
(
dst7
)
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
*
dst
=
(
IDirectDrawSurface
*
)
&
dst_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
}
}
...
@@ -5769,7 +5769,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
...
@@ -5769,7 +5769,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
IDirectDrawSurface7
*
attached
;
IDirectDrawSurface7
*
attached
;
IDirectDrawSurface7_GetAttachedSurface
((
IDirectDrawSurface7
*
)
surf
,
&
searchcaps
,
&
attached
);
IDirectDrawSurface7_GetAttachedSurface
((
IDirectDrawSurface7
*
)
surf
,
&
searchcaps
,
&
attached
);
if
(
!
attached
)
ERR
(
"Surface not found
\n
"
);
if
(
!
attached
)
ERR
(
"Surface not found
\n
"
);
surf
=
(
IDirectDrawSurfaceImpl
*
)
attached
;
surf
=
impl_from_IDirectDrawSurface7
(
attached
)
;
IDirectDrawSurface7_Release
(
attached
);
IDirectDrawSurface7_Release
(
attached
);
++
i
;
++
i
;
}
}
...
@@ -5785,7 +5785,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
...
@@ -5785,7 +5785,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
static
HRESULT
WINAPI
findRenderTarget
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
surface_desc
,
void
*
ctx
)
static
HRESULT
WINAPI
findRenderTarget
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
surface_desc
,
void
*
ctx
)
{
{
IDirectDrawSurfaceImpl
*
s
=
(
IDirectDrawSurfaceImpl
*
)
surface
;
IDirectDrawSurfaceImpl
*
s
=
impl_from_IDirectDrawSurface7
(
surface
)
;
IDirectDrawSurfaceImpl
**
target
=
ctx
;
IDirectDrawSurfaceImpl
**
target
=
ctx
;
if
(
!
s
->
isRenderTarget
)
if
(
!
s
->
isRenderTarget
)
...
...
dlls/ddraw/ddraw_private.h
View file @
93dfe5af
...
@@ -225,6 +225,11 @@ static inline IDirectDrawSurfaceImpl *impl_from_IDirectDrawSurface3(IDirectDrawS
...
@@ -225,6 +225,11 @@ static inline IDirectDrawSurfaceImpl *impl_from_IDirectDrawSurface3(IDirectDrawS
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirectDrawSurface3_iface
);
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
IDirectDrawSurface3_iface
);
}
}
static
inline
IDirectDrawSurfaceImpl
*
impl_from_IDirectDrawSurface7
(
IDirectDrawSurface7
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectDrawSurfaceImpl
,
lpVtbl
);
}
IDirectDrawSurfaceImpl
*
unsafe_impl_from_IDirectDrawSurface3
(
IDirectDrawSurface3
*
iface
)
DECLSPEC_HIDDEN
;
IDirectDrawSurfaceImpl
*
unsafe_impl_from_IDirectDrawSurface3
(
IDirectDrawSurface3
*
iface
)
DECLSPEC_HIDDEN
;
IDirectDrawSurfaceImpl
*
unsafe_impl_from_IDirectDrawSurface7
(
IDirectDrawSurface7
*
iface
)
DECLSPEC_HIDDEN
;
IDirectDrawSurfaceImpl
*
unsafe_impl_from_IDirectDrawSurface7
(
IDirectDrawSurface7
*
iface
)
DECLSPEC_HIDDEN
;
...
...
dlls/ddraw/device.c
View file @
93dfe5af
...
@@ -6751,7 +6751,7 @@ IDirect3DDeviceImpl_UpdateDepthStencil(IDirect3DDeviceImpl *This)
...
@@ -6751,7 +6751,7 @@ IDirect3DDeviceImpl_UpdateDepthStencil(IDirect3DDeviceImpl *This)
return
WINED3DZB_FALSE
;
return
WINED3DZB_FALSE
;
}
}
dsi
=
(
IDirectDrawSurfaceImpl
*
)
depthStencil
;
dsi
=
impl_from_IDirectDrawSurface7
(
depthStencil
)
;
TRACE
(
"Setting wined3d depth stencil to %p (wined3d %p)
\n
"
,
dsi
,
dsi
->
wined3d_surface
);
TRACE
(
"Setting wined3d depth stencil to %p (wined3d %p)
\n
"
,
dsi
,
dsi
->
wined3d_surface
);
wined3d_device_set_depth_stencil
(
This
->
wined3d_device
,
dsi
->
wined3d_surface
);
wined3d_device_set_depth_stencil
(
This
->
wined3d_device
,
dsi
->
wined3d_surface
);
...
...
dlls/ddraw/main.c
View file @
93dfe5af
...
@@ -751,7 +751,7 @@ DestroyCallback(IDirectDrawSurface7 *surf,
...
@@ -751,7 +751,7 @@ DestroyCallback(IDirectDrawSurface7 *surf,
DDSURFACEDESC2
*
desc
,
DDSURFACEDESC2
*
desc
,
void
*
context
)
void
*
context
)
{
{
IDirectDrawSurfaceImpl
*
Impl
=
(
IDirectDrawSurfaceImpl
*
)
surf
;
IDirectDrawSurfaceImpl
*
Impl
=
impl_from_IDirectDrawSurface7
(
surf
)
;
ULONG
ref
;
ULONG
ref
;
ref
=
IDirectDrawSurface7_Release
(
surf
);
/* For the EnumSurfaces */
ref
=
IDirectDrawSurface7_Release
(
surf
);
/* For the EnumSurfaces */
...
...
dlls/ddraw/surface.c
View file @
93dfe5af
...
@@ -60,7 +60,7 @@ static inline IDirectDrawSurfaceImpl *surface_from_gamma_control(IDirectDrawGamm
...
@@ -60,7 +60,7 @@ static inline IDirectDrawSurfaceImpl *surface_from_gamma_control(IDirectDrawGamm
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_QueryInterface
(
IDirectDrawSurface7
*
iface
,
REFIID
riid
,
void
**
obj
)
static
HRESULT
WINAPI
ddraw_surface7_QueryInterface
(
IDirectDrawSurface7
*
iface
,
REFIID
riid
,
void
**
obj
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
...
@@ -179,7 +179,7 @@ static HRESULT WINAPI d3d_texture1_QueryInterface(IDirect3DTexture *iface, REFII
...
@@ -179,7 +179,7 @@ static HRESULT WINAPI d3d_texture1_QueryInterface(IDirect3DTexture *iface, REFII
*****************************************************************************/
*****************************************************************************/
static
ULONG
WINAPI
ddraw_surface7_AddRef
(
IDirectDrawSurface7
*
iface
)
static
ULONG
WINAPI
ddraw_surface7_AddRef
(
IDirectDrawSurface7
*
iface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
This
,
refCount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
This
,
refCount
);
...
@@ -382,7 +382,7 @@ static void ddraw_surface_cleanup(IDirectDrawSurfaceImpl *surface)
...
@@ -382,7 +382,7 @@ static void ddraw_surface_cleanup(IDirectDrawSurfaceImpl *surface)
*****************************************************************************/
*****************************************************************************/
static
ULONG
WINAPI
ddraw_surface7_Release
(
IDirectDrawSurface7
*
iface
)
static
ULONG
WINAPI
ddraw_surface7_Release
(
IDirectDrawSurface7
*
iface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
ref
);
...
@@ -469,7 +469,7 @@ static ULONG WINAPI d3d_texture1_Release(IDirect3DTexture *iface)
...
@@ -469,7 +469,7 @@ static ULONG WINAPI d3d_texture1_Release(IDirect3DTexture *iface)
static
HRESULT
WINAPI
ddraw_surface7_GetAttachedSurface
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_GetAttachedSurface
(
IDirectDrawSurface7
*
iface
,
DDSCAPS2
*
Caps
,
IDirectDrawSurface7
**
Surface
)
DDSCAPS2
*
Caps
,
IDirectDrawSurface7
**
Surface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
surf
;
IDirectDrawSurfaceImpl
*
surf
;
DDSCAPS2
our_caps
;
DDSCAPS2
our_caps
;
int
i
;
int
i
;
...
@@ -580,7 +580,7 @@ static HRESULT WINAPI ddraw_surface3_GetAttachedSurface(IDirectDrawSurface3 *ifa
...
@@ -580,7 +580,7 @@ static HRESULT WINAPI ddraw_surface3_GetAttachedSurface(IDirectDrawSurface3 *ifa
*
attachment
=
NULL
;
*
attachment
=
NULL
;
return
hr
;
return
hr
;
}
}
attachment_impl
=
(
IDirectDrawSurfaceImpl
*
)
attachment7
;
attachment_impl
=
impl_from_IDirectDrawSurface7
(
attachment7
)
;
*
attachment
=
&
attachment_impl
->
IDirectDrawSurface3_iface
;
*
attachment
=
&
attachment_impl
->
IDirectDrawSurface3_iface
;
return
hr
;
return
hr
;
...
@@ -606,7 +606,7 @@ static HRESULT WINAPI ddraw_surface3_GetAttachedSurface(IDirectDrawSurface3 *ifa
...
@@ -606,7 +606,7 @@ static HRESULT WINAPI ddraw_surface3_GetAttachedSurface(IDirectDrawSurface3 *ifa
static
HRESULT
WINAPI
ddraw_surface7_Lock
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_Lock
(
IDirectDrawSurface7
*
iface
,
RECT
*
Rect
,
DDSURFACEDESC2
*
DDSD
,
DWORD
Flags
,
HANDLE
h
)
RECT
*
Rect
,
DDSURFACEDESC2
*
DDSD
,
DWORD
Flags
,
HANDLE
h
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
WINED3DLOCKED_RECT
LockedRect
;
WINED3DLOCKED_RECT
LockedRect
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -708,7 +708,7 @@ static HRESULT WINAPI ddraw_surface3_Lock(IDirectDrawSurface3 *iface, RECT *rect
...
@@ -708,7 +708,7 @@ static HRESULT WINAPI ddraw_surface3_Lock(IDirectDrawSurface3 *iface, RECT *rect
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_Unlock
(
IDirectDrawSurface7
*
iface
,
RECT
*
pRect
)
static
HRESULT
WINAPI
ddraw_surface7_Unlock
(
IDirectDrawSurface7
*
iface
,
RECT
*
pRect
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, rect %s.
\n
"
,
iface
,
wine_dbgstr_rect
(
pRect
));
TRACE
(
"iface %p, rect %s.
\n
"
,
iface
,
wine_dbgstr_rect
(
pRect
));
...
@@ -753,7 +753,7 @@ static HRESULT WINAPI ddraw_surface3_Unlock(IDirectDrawSurface3 *iface, void *da
...
@@ -753,7 +753,7 @@ static HRESULT WINAPI ddraw_surface3_Unlock(IDirectDrawSurface3 *iface, void *da
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_Flip
(
IDirectDrawSurface7
*
iface
,
IDirectDrawSurface7
*
DestOverride
,
DWORD
Flags
)
static
HRESULT
WINAPI
ddraw_surface7_Flip
(
IDirectDrawSurface7
*
iface
,
IDirectDrawSurface7
*
DestOverride
,
DWORD
Flags
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Override
=
unsafe_impl_from_IDirectDrawSurface7
(
DestOverride
);
IDirectDrawSurfaceImpl
*
Override
=
unsafe_impl_from_IDirectDrawSurface7
(
DestOverride
);
IDirectDrawSurface7
*
Override7
;
IDirectDrawSurface7
*
Override7
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -782,7 +782,7 @@ static HRESULT WINAPI ddraw_surface7_Flip(IDirectDrawSurface7 *iface, IDirectDra
...
@@ -782,7 +782,7 @@ static HRESULT WINAPI ddraw_surface7_Flip(IDirectDrawSurface7 *iface, IDirectDra
LeaveCriticalSection
(
&
ddraw_cs
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_NOTFLIPPABLE
;
/* Unchecked */
return
DDERR_NOTFLIPPABLE
;
/* Unchecked */
}
}
Override
=
(
IDirectDrawSurfaceImpl
*
)
Override7
;
Override
=
impl_from_IDirectDrawSurface7
(
Override7
)
;
/* For the GetAttachedSurface */
/* For the GetAttachedSurface */
ddraw_surface7_Release
(
Override7
);
ddraw_surface7_Release
(
Override7
);
...
@@ -823,7 +823,7 @@ static HRESULT WINAPI ddraw_surface3_Flip(IDirectDrawSurface3 *iface, IDirectDra
...
@@ -823,7 +823,7 @@ static HRESULT WINAPI ddraw_surface3_Flip(IDirectDrawSurface3 *iface, IDirectDra
static
HRESULT
WINAPI
ddraw_surface7_Blt
(
IDirectDrawSurface7
*
iface
,
RECT
*
DestRect
,
static
HRESULT
WINAPI
ddraw_surface7_Blt
(
IDirectDrawSurface7
*
iface
,
RECT
*
DestRect
,
IDirectDrawSurface7
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
IDirectDrawSurface7
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Src
=
unsafe_impl_from_IDirectDrawSurface7
(
SrcSurface
);
IDirectDrawSurfaceImpl
*
Src
=
unsafe_impl_from_IDirectDrawSurface7
(
SrcSurface
);
HRESULT
hr
;
HRESULT
hr
;
...
@@ -986,7 +986,7 @@ static HRESULT ddraw_surface_attach_surface(IDirectDrawSurfaceImpl *This, IDirec
...
@@ -986,7 +986,7 @@ static HRESULT ddraw_surface_attach_surface(IDirectDrawSurfaceImpl *This, IDirec
static
HRESULT
WINAPI
ddraw_surface7_AddAttachedSurface
(
IDirectDrawSurface7
*
iface
,
IDirectDrawSurface7
*
Attach
)
static
HRESULT
WINAPI
ddraw_surface7_AddAttachedSurface
(
IDirectDrawSurface7
*
iface
,
IDirectDrawSurface7
*
Attach
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Surf
=
unsafe_impl_from_IDirectDrawSurface7
(
Attach
);
IDirectDrawSurfaceImpl
*
Surf
=
unsafe_impl_from_IDirectDrawSurface7
(
Attach
);
TRACE
(
"iface %p, attachment %p.
\n
"
,
iface
,
Attach
);
TRACE
(
"iface %p, attachment %p.
\n
"
,
iface
,
Attach
);
...
@@ -1059,7 +1059,7 @@ static HRESULT WINAPI ddraw_surface3_AddAttachedSurface(IDirectDrawSurface3 *ifa
...
@@ -1059,7 +1059,7 @@ static HRESULT WINAPI ddraw_surface3_AddAttachedSurface(IDirectDrawSurface3 *ifa
static
HRESULT
WINAPI
ddraw_surface7_DeleteAttachedSurface
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_DeleteAttachedSurface
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
IDirectDrawSurface7
*
Attach
)
DWORD
Flags
,
IDirectDrawSurface7
*
Attach
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Surf
=
unsafe_impl_from_IDirectDrawSurface7
(
Attach
);
IDirectDrawSurfaceImpl
*
Surf
=
unsafe_impl_from_IDirectDrawSurface7
(
Attach
);
IDirectDrawSurfaceImpl
*
Prev
=
This
;
IDirectDrawSurfaceImpl
*
Prev
=
This
;
...
@@ -1161,7 +1161,7 @@ static HRESULT WINAPI ddraw_surface3_AddOverlayDirtyRect(IDirectDrawSurface3 *if
...
@@ -1161,7 +1161,7 @@ static HRESULT WINAPI ddraw_surface3_AddOverlayDirtyRect(IDirectDrawSurface3 *if
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetDC
(
IDirectDrawSurface7
*
iface
,
HDC
*
hdc
)
static
HRESULT
WINAPI
ddraw_surface7_GetDC
(
IDirectDrawSurface7
*
iface
,
HDC
*
hdc
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, dc %p.
\n
"
,
iface
,
hdc
);
TRACE
(
"iface %p, dc %p.
\n
"
,
iface
,
hdc
);
...
@@ -1208,7 +1208,7 @@ static HRESULT WINAPI ddraw_surface3_GetDC(IDirectDrawSurface3 *iface, HDC *dc)
...
@@ -1208,7 +1208,7 @@ static HRESULT WINAPI ddraw_surface3_GetDC(IDirectDrawSurface3 *iface, HDC *dc)
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_ReleaseDC
(
IDirectDrawSurface7
*
iface
,
HDC
hdc
)
static
HRESULT
WINAPI
ddraw_surface7_ReleaseDC
(
IDirectDrawSurface7
*
iface
,
HDC
hdc
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, dc %p.
\n
"
,
iface
,
hdc
);
TRACE
(
"iface %p, dc %p.
\n
"
,
iface
,
hdc
);
...
@@ -1242,7 +1242,7 @@ static HRESULT WINAPI ddraw_surface3_ReleaseDC(IDirectDrawSurface3 *iface, HDC d
...
@@ -1242,7 +1242,7 @@ static HRESULT WINAPI ddraw_surface3_ReleaseDC(IDirectDrawSurface3 *iface, HDC d
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetCaps
(
IDirectDrawSurface7
*
iface
,
DDSCAPS2
*
Caps
)
static
HRESULT
WINAPI
ddraw_surface7_GetCaps
(
IDirectDrawSurface7
*
iface
,
DDSCAPS2
*
Caps
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, caps %p.
\n
"
,
iface
,
Caps
);
TRACE
(
"iface %p, caps %p.
\n
"
,
iface
,
Caps
);
...
@@ -1283,7 +1283,7 @@ static HRESULT WINAPI ddraw_surface3_GetCaps(IDirectDrawSurface3 *iface, DDSCAPS
...
@@ -1283,7 +1283,7 @@ static HRESULT WINAPI ddraw_surface3_GetCaps(IDirectDrawSurface3 *iface, DDSCAPS
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetPriority
(
IDirectDrawSurface7
*
iface
,
DWORD
Priority
)
static
HRESULT
WINAPI
ddraw_surface7_SetPriority
(
IDirectDrawSurface7
*
iface
,
DWORD
Priority
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
Priority
);
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
Priority
);
...
@@ -1310,7 +1310,7 @@ static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWO
...
@@ -1310,7 +1310,7 @@ static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWO
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetPriority
(
IDirectDrawSurface7
*
iface
,
DWORD
*
Priority
)
static
HRESULT
WINAPI
ddraw_surface7_GetPriority
(
IDirectDrawSurface7
*
iface
,
DWORD
*
Priority
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, priority %p.
\n
"
,
iface
,
Priority
);
TRACE
(
"iface %p, priority %p.
\n
"
,
iface
,
Priority
);
...
@@ -1345,7 +1345,7 @@ static HRESULT WINAPI ddraw_surface7_GetPriority(IDirectDrawSurface7 *iface, DWO
...
@@ -1345,7 +1345,7 @@ static HRESULT WINAPI ddraw_surface7_GetPriority(IDirectDrawSurface7 *iface, DWO
static
HRESULT
WINAPI
ddraw_surface7_SetPrivateData
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_SetPrivateData
(
IDirectDrawSurface7
*
iface
,
REFGUID
tag
,
void
*
Data
,
DWORD
Size
,
DWORD
Flags
)
REFGUID
tag
,
void
*
Data
,
DWORD
Size
,
DWORD
Flags
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, tag %s, data %p, data_size %u, flags %#x.
\n
"
,
TRACE
(
"iface %p, tag %s, data %p, data_size %u, flags %#x.
\n
"
,
...
@@ -1379,7 +1379,7 @@ static HRESULT WINAPI ddraw_surface7_SetPrivateData(IDirectDrawSurface7 *iface,
...
@@ -1379,7 +1379,7 @@ static HRESULT WINAPI ddraw_surface7_SetPrivateData(IDirectDrawSurface7 *iface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetPrivateData
(
IDirectDrawSurface7
*
iface
,
REFGUID
tag
,
void
*
Data
,
DWORD
*
Size
)
static
HRESULT
WINAPI
ddraw_surface7_GetPrivateData
(
IDirectDrawSurface7
*
iface
,
REFGUID
tag
,
void
*
Data
,
DWORD
*
Size
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, tag %s, data %p, data_size %p.
\n
"
,
TRACE
(
"iface %p, tag %s, data %p, data_size %p.
\n
"
,
...
@@ -1409,7 +1409,7 @@ static HRESULT WINAPI ddraw_surface7_GetPrivateData(IDirectDrawSurface7 *iface,
...
@@ -1409,7 +1409,7 @@ static HRESULT WINAPI ddraw_surface7_GetPrivateData(IDirectDrawSurface7 *iface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_FreePrivateData
(
IDirectDrawSurface7
*
iface
,
REFGUID
tag
)
static
HRESULT
WINAPI
ddraw_surface7_FreePrivateData
(
IDirectDrawSurface7
*
iface
,
REFGUID
tag
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, tag %s.
\n
"
,
iface
,
debugstr_guid
(
tag
));
TRACE
(
"iface %p, tag %s.
\n
"
,
iface
,
debugstr_guid
(
tag
));
...
@@ -1520,7 +1520,7 @@ static HRESULT WINAPI ddraw_surface3_BltBatch(IDirectDrawSurface3 *iface, DDBLTB
...
@@ -1520,7 +1520,7 @@ static HRESULT WINAPI ddraw_surface3_BltBatch(IDirectDrawSurface3 *iface, DDBLTB
static
HRESULT
WINAPI
ddraw_surface7_EnumAttachedSurfaces
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_EnumAttachedSurfaces
(
IDirectDrawSurface7
*
iface
,
void
*
context
,
LPDDENUMSURFACESCALLBACK7
cb
)
void
*
context
,
LPDDENUMSURFACESCALLBACK7
cb
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
surf
;
IDirectDrawSurfaceImpl
*
surf
;
DDSURFACEDESC2
desc
;
DDSURFACEDESC2
desc
;
int
i
;
int
i
;
...
@@ -1573,7 +1573,7 @@ struct callback_info
...
@@ -1573,7 +1573,7 @@ struct callback_info
static
HRESULT
CALLBACK
EnumCallback
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
surface_desc
,
void
*
context
)
static
HRESULT
CALLBACK
EnumCallback
(
IDirectDrawSurface7
*
surface
,
DDSURFACEDESC2
*
surface_desc
,
void
*
context
)
{
{
IDirectDrawSurfaceImpl
*
surface_impl
=
(
IDirectDrawSurfaceImpl
*
)
surface
;
IDirectDrawSurfaceImpl
*
surface_impl
=
impl_from_IDirectDrawSurface7
(
surface
)
;
const
struct
callback_info
*
info
=
context
;
const
struct
callback_info
*
info
=
context
;
return
info
->
callback
((
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
,
return
info
->
callback
((
IDirectDrawSurface
*
)
&
surface_impl
->
IDirectDrawSurface3_iface
,
...
@@ -1646,7 +1646,7 @@ static HRESULT WINAPI ddraw_surface3_EnumOverlayZOrders(IDirectDrawSurface3 *ifa
...
@@ -1646,7 +1646,7 @@ static HRESULT WINAPI ddraw_surface3_EnumOverlayZOrders(IDirectDrawSurface3 *ifa
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetBltStatus
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
)
static
HRESULT
WINAPI
ddraw_surface7_GetBltStatus
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, flags %#x.
\n
"
,
iface
,
Flags
);
TRACE
(
"iface %p, flags %#x.
\n
"
,
iface
,
Flags
);
...
@@ -1685,7 +1685,7 @@ static HRESULT WINAPI ddraw_surface3_GetBltStatus(IDirectDrawSurface3 *iface, DW
...
@@ -1685,7 +1685,7 @@ static HRESULT WINAPI ddraw_surface3_GetBltStatus(IDirectDrawSurface3 *iface, DW
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetColorKey
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
static
HRESULT
WINAPI
ddraw_surface7_GetColorKey
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, flags %#x, color_key %p.
\n
"
,
iface
,
Flags
,
CKey
);
TRACE
(
"iface %p, flags %#x, color_key %p.
\n
"
,
iface
,
Flags
,
CKey
);
...
@@ -1763,7 +1763,7 @@ static HRESULT WINAPI ddraw_surface3_GetColorKey(IDirectDrawSurface3 *iface, DWO
...
@@ -1763,7 +1763,7 @@ static HRESULT WINAPI ddraw_surface3_GetColorKey(IDirectDrawSurface3 *iface, DWO
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetFlipStatus
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
)
static
HRESULT
WINAPI
ddraw_surface7_GetFlipStatus
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, flags %#x.
\n
"
,
iface
,
Flags
);
TRACE
(
"iface %p, flags %#x.
\n
"
,
iface
,
Flags
);
...
@@ -1800,7 +1800,7 @@ static HRESULT WINAPI ddraw_surface3_GetFlipStatus(IDirectDrawSurface3 *iface, D
...
@@ -1800,7 +1800,7 @@ static HRESULT WINAPI ddraw_surface3_GetFlipStatus(IDirectDrawSurface3 *iface, D
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetOverlayPosition
(
IDirectDrawSurface7
*
iface
,
LONG
*
X
,
LONG
*
Y
)
static
HRESULT
WINAPI
ddraw_surface7_GetOverlayPosition
(
IDirectDrawSurface7
*
iface
,
LONG
*
X
,
LONG
*
Y
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, x %p, y %p.
\n
"
,
iface
,
X
,
Y
);
TRACE
(
"iface %p, x %p, y %p.
\n
"
,
iface
,
X
,
Y
);
...
@@ -1836,7 +1836,7 @@ static HRESULT WINAPI ddraw_surface3_GetOverlayPosition(IDirectDrawSurface3 *ifa
...
@@ -1836,7 +1836,7 @@ static HRESULT WINAPI ddraw_surface3_GetOverlayPosition(IDirectDrawSurface3 *ifa
static
HRESULT
WINAPI
ddraw_surface7_GetPixelFormat
(
IDirectDrawSurface7
*
iface
,
DDPIXELFORMAT
*
PixelFormat
)
static
HRESULT
WINAPI
ddraw_surface7_GetPixelFormat
(
IDirectDrawSurface7
*
iface
,
DDPIXELFORMAT
*
PixelFormat
)
{
{
/* What is DDERR_INVALIDSURFACETYPE for here? */
/* What is DDERR_INVALIDSURFACETYPE for here? */
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, pixel_format %p.
\n
"
,
iface
,
PixelFormat
);
TRACE
(
"iface %p, pixel_format %p.
\n
"
,
iface
,
PixelFormat
);
...
@@ -1874,7 +1874,7 @@ static HRESULT WINAPI ddraw_surface3_GetPixelFormat(IDirectDrawSurface3 *iface,
...
@@ -1874,7 +1874,7 @@ static HRESULT WINAPI ddraw_surface3_GetPixelFormat(IDirectDrawSurface3 *iface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetSurfaceDesc
(
IDirectDrawSurface7
*
iface
,
DDSURFACEDESC2
*
DDSD
)
static
HRESULT
WINAPI
ddraw_surface7_GetSurfaceDesc
(
IDirectDrawSurface7
*
iface
,
DDSURFACEDESC2
*
DDSD
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, surface_desc %p.
\n
"
,
iface
,
DDSD
);
TRACE
(
"iface %p, surface_desc %p.
\n
"
,
iface
,
DDSD
);
...
@@ -1987,7 +1987,7 @@ static HRESULT WINAPI d3d_texture1_Initialize(IDirect3DTexture *iface,
...
@@ -1987,7 +1987,7 @@ static HRESULT WINAPI d3d_texture1_Initialize(IDirect3DTexture *iface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_IsLost
(
IDirectDrawSurface7
*
iface
)
static
HRESULT
WINAPI
ddraw_surface7_IsLost
(
IDirectDrawSurface7
*
iface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p.
\n
"
,
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
...
@@ -2038,7 +2038,7 @@ static HRESULT WINAPI ddraw_surface3_IsLost(IDirectDrawSurface3 *iface)
...
@@ -2038,7 +2038,7 @@ static HRESULT WINAPI ddraw_surface3_IsLost(IDirectDrawSurface3 *iface)
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_Restore
(
IDirectDrawSurface7
*
iface
)
static
HRESULT
WINAPI
ddraw_surface7_Restore
(
IDirectDrawSurface7
*
iface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p.
\n
"
,
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
...
@@ -2077,7 +2077,7 @@ static HRESULT WINAPI ddraw_surface3_Restore(IDirectDrawSurface3 *iface)
...
@@ -2077,7 +2077,7 @@ static HRESULT WINAPI ddraw_surface3_Restore(IDirectDrawSurface3 *iface)
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetOverlayPosition
(
IDirectDrawSurface7
*
iface
,
LONG
X
,
LONG
Y
)
static
HRESULT
WINAPI
ddraw_surface7_SetOverlayPosition
(
IDirectDrawSurface7
*
iface
,
LONG
X
,
LONG
Y
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, x %d, y %d.
\n
"
,
iface
,
X
,
Y
);
TRACE
(
"iface %p, x %d, y %d.
\n
"
,
iface
,
X
,
Y
);
...
@@ -2114,7 +2114,7 @@ static HRESULT WINAPI ddraw_surface3_SetOverlayPosition(IDirectDrawSurface3 *ifa
...
@@ -2114,7 +2114,7 @@ static HRESULT WINAPI ddraw_surface3_SetOverlayPosition(IDirectDrawSurface3 *ifa
static
HRESULT
WINAPI
ddraw_surface7_UpdateOverlay
(
IDirectDrawSurface7
*
iface
,
RECT
*
SrcRect
,
static
HRESULT
WINAPI
ddraw_surface7_UpdateOverlay
(
IDirectDrawSurface7
*
iface
,
RECT
*
SrcRect
,
IDirectDrawSurface7
*
DstSurface
,
RECT
*
DstRect
,
DWORD
Flags
,
DDOVERLAYFX
*
FX
)
IDirectDrawSurface7
*
DstSurface
,
RECT
*
DstRect
,
DWORD
Flags
,
DDOVERLAYFX
*
FX
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Dst
=
unsafe_impl_from_IDirectDrawSurface7
(
DstSurface
);
IDirectDrawSurfaceImpl
*
Dst
=
unsafe_impl_from_IDirectDrawSurface7
(
DstSurface
);
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2188,7 +2188,7 @@ static HRESULT WINAPI ddraw_surface3_UpdateOverlayDisplay(IDirectDrawSurface3 *i
...
@@ -2188,7 +2188,7 @@ static HRESULT WINAPI ddraw_surface3_UpdateOverlayDisplay(IDirectDrawSurface3 *i
static
HRESULT
WINAPI
ddraw_surface7_UpdateOverlayZOrder
(
IDirectDrawSurface7
*
iface
,
static
HRESULT
WINAPI
ddraw_surface7_UpdateOverlayZOrder
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
IDirectDrawSurface7
*
DDSRef
)
DWORD
Flags
,
IDirectDrawSurface7
*
DDSRef
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
Ref
=
unsafe_impl_from_IDirectDrawSurface7
(
DDSRef
);
IDirectDrawSurfaceImpl
*
Ref
=
unsafe_impl_from_IDirectDrawSurface7
(
DDSRef
);
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2228,7 +2228,7 @@ static HRESULT WINAPI ddraw_surface3_UpdateOverlayZOrder(IDirectDrawSurface3 *if
...
@@ -2228,7 +2228,7 @@ static HRESULT WINAPI ddraw_surface3_UpdateOverlayZOrder(IDirectDrawSurface3 *if
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetDDInterface
(
IDirectDrawSurface7
*
iface
,
void
**
DD
)
static
HRESULT
WINAPI
ddraw_surface7_GetDDInterface
(
IDirectDrawSurface7
*
iface
,
void
**
DD
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, ddraw %p.
\n
"
,
iface
,
DD
);
TRACE
(
"iface %p, ddraw %p.
\n
"
,
iface
,
DD
);
...
@@ -2270,7 +2270,7 @@ static HRESULT WINAPI ddraw_surface3_GetDDInterface(IDirectDrawSurface3 *iface,
...
@@ -2270,7 +2270,7 @@ static HRESULT WINAPI ddraw_surface3_GetDDInterface(IDirectDrawSurface3 *iface,
/* This seems also windows implementation specific - I don't think WineD3D needs this */
/* This seems also windows implementation specific - I don't think WineD3D needs this */
static
HRESULT
WINAPI
ddraw_surface7_ChangeUniquenessValue
(
IDirectDrawSurface7
*
iface
)
static
HRESULT
WINAPI
ddraw_surface7_ChangeUniquenessValue
(
IDirectDrawSurface7
*
iface
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
volatile
IDirectDrawSurfaceImpl
*
vThis
=
This
;
volatile
IDirectDrawSurfaceImpl
*
vThis
=
This
;
TRACE
(
"iface %p.
\n
"
,
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
...
@@ -2300,7 +2300,7 @@ static HRESULT WINAPI ddraw_surface7_ChangeUniquenessValue(IDirectDrawSurface7 *
...
@@ -2300,7 +2300,7 @@ static HRESULT WINAPI ddraw_surface7_ChangeUniquenessValue(IDirectDrawSurface7 *
static
HRESULT
WINAPI
ddraw_surface7_GetUniquenessValue
(
IDirectDrawSurface7
*
iface
,
DWORD
*
pValue
)
static
HRESULT
WINAPI
ddraw_surface7_GetUniquenessValue
(
IDirectDrawSurface7
*
iface
,
DWORD
*
pValue
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, value %p.
\n
"
,
iface
,
pValue
);
TRACE
(
"iface %p, value %p.
\n
"
,
iface
,
pValue
);
...
@@ -2325,7 +2325,7 @@ static HRESULT WINAPI ddraw_surface7_GetUniquenessValue(IDirectDrawSurface7 *ifa
...
@@ -2325,7 +2325,7 @@ static HRESULT WINAPI ddraw_surface7_GetUniquenessValue(IDirectDrawSurface7 *ifa
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetLOD
(
IDirectDrawSurface7
*
iface
,
DWORD
MaxLOD
)
static
HRESULT
WINAPI
ddraw_surface7_SetLOD
(
IDirectDrawSurface7
*
iface
,
DWORD
MaxLOD
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, lod %u.
\n
"
,
iface
,
MaxLOD
);
TRACE
(
"iface %p, lod %u.
\n
"
,
iface
,
MaxLOD
);
...
@@ -2365,7 +2365,7 @@ static HRESULT WINAPI ddraw_surface7_SetLOD(IDirectDrawSurface7 *iface, DWORD Ma
...
@@ -2365,7 +2365,7 @@ static HRESULT WINAPI ddraw_surface7_SetLOD(IDirectDrawSurface7 *iface, DWORD Ma
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetLOD
(
IDirectDrawSurface7
*
iface
,
DWORD
*
MaxLOD
)
static
HRESULT
WINAPI
ddraw_surface7_GetLOD
(
IDirectDrawSurface7
*
iface
,
DWORD
*
MaxLOD
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, lod %p.
\n
"
,
iface
,
MaxLOD
);
TRACE
(
"iface %p, lod %p.
\n
"
,
iface
,
MaxLOD
);
...
@@ -2404,7 +2404,7 @@ static HRESULT WINAPI ddraw_surface7_GetLOD(IDirectDrawSurface7 *iface, DWORD *M
...
@@ -2404,7 +2404,7 @@ static HRESULT WINAPI ddraw_surface7_GetLOD(IDirectDrawSurface7 *iface, DWORD *M
static
HRESULT
WINAPI
ddraw_surface7_BltFast
(
IDirectDrawSurface7
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
static
HRESULT
WINAPI
ddraw_surface7_BltFast
(
IDirectDrawSurface7
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IDirectDrawSurface7
*
Source
,
RECT
*
rsrc
,
DWORD
trans
)
IDirectDrawSurface7
*
Source
,
RECT
*
rsrc
,
DWORD
trans
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawSurfaceImpl
*
src
=
unsafe_impl_from_IDirectDrawSurface7
(
Source
);
IDirectDrawSurfaceImpl
*
src
=
unsafe_impl_from_IDirectDrawSurface7
(
Source
);
DWORD
src_w
,
src_h
,
dst_w
,
dst_h
;
DWORD
src_w
,
src_h
,
dst_w
,
dst_h
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2485,7 +2485,7 @@ static HRESULT WINAPI ddraw_surface3_BltFast(IDirectDrawSurface3 *iface, DWORD d
...
@@ -2485,7 +2485,7 @@ static HRESULT WINAPI ddraw_surface3_BltFast(IDirectDrawSurface3 *iface, DWORD d
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetClipper
(
IDirectDrawSurface7
*
iface
,
IDirectDrawClipper
**
Clipper
)
static
HRESULT
WINAPI
ddraw_surface7_GetClipper
(
IDirectDrawSurface7
*
iface
,
IDirectDrawClipper
**
Clipper
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
TRACE
(
"iface %p, clipper %p.
\n
"
,
iface
,
Clipper
);
TRACE
(
"iface %p, clipper %p.
\n
"
,
iface
,
Clipper
);
...
@@ -2530,7 +2530,7 @@ static HRESULT WINAPI ddraw_surface3_GetClipper(IDirectDrawSurface3 *iface, IDir
...
@@ -2530,7 +2530,7 @@ static HRESULT WINAPI ddraw_surface3_GetClipper(IDirectDrawSurface3 *iface, IDir
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetClipper
(
IDirectDrawSurface7
*
iface
,
IDirectDrawClipper
*
Clipper
)
static
HRESULT
WINAPI
ddraw_surface7_SetClipper
(
IDirectDrawSurface7
*
iface
,
IDirectDrawClipper
*
Clipper
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawClipperImpl
*
oldClipper
=
This
->
clipper
;
IDirectDrawClipperImpl
*
oldClipper
=
This
->
clipper
;
HWND
clipWindow
;
HWND
clipWindow
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2597,7 +2597,7 @@ static HRESULT WINAPI ddraw_surface3_SetClipper(IDirectDrawSurface3 *iface, IDir
...
@@ -2597,7 +2597,7 @@ static HRESULT WINAPI ddraw_surface3_SetClipper(IDirectDrawSurface3 *iface, IDir
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetSurfaceDesc
(
IDirectDrawSurface7
*
iface
,
DDSURFACEDESC2
*
DDSD
,
DWORD
Flags
)
static
HRESULT
WINAPI
ddraw_surface7_SetSurfaceDesc
(
IDirectDrawSurface7
*
iface
,
DDSURFACEDESC2
*
DDSD
,
DWORD
Flags
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
enum
wined3d_format_id
newFormat
=
WINED3DFMT_UNKNOWN
;
enum
wined3d_format_id
newFormat
=
WINED3DFMT_UNKNOWN
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2696,7 +2696,7 @@ static HRESULT WINAPI ddraw_surface3_SetSurfaceDesc(IDirectDrawSurface3 *iface,
...
@@ -2696,7 +2696,7 @@ static HRESULT WINAPI ddraw_surface3_SetSurfaceDesc(IDirectDrawSurface3 *iface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_GetPalette
(
IDirectDrawSurface7
*
iface
,
IDirectDrawPalette
**
Pal
)
static
HRESULT
WINAPI
ddraw_surface7_GetPalette
(
IDirectDrawSurface7
*
iface
,
IDirectDrawPalette
**
Pal
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
struct
wined3d_palette
*
wined3d_palette
;
struct
wined3d_palette
*
wined3d_palette
;
HRESULT
hr
=
DD_OK
;
HRESULT
hr
=
DD_OK
;
...
@@ -2749,7 +2749,7 @@ SetColorKeyEnum(IDirectDrawSurface7 *surface,
...
@@ -2749,7 +2749,7 @@ SetColorKeyEnum(IDirectDrawSurface7 *surface,
DDSURFACEDESC2
*
desc
,
DDSURFACEDESC2
*
desc
,
void
*
context
)
void
*
context
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
surface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
surface
)
;
struct
SCKContext
*
ctx
=
context
;
struct
SCKContext
*
ctx
=
context
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2784,7 +2784,7 @@ SetColorKeyEnum(IDirectDrawSurface7 *surface,
...
@@ -2784,7 +2784,7 @@ SetColorKeyEnum(IDirectDrawSurface7 *surface,
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetColorKey
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
static
HRESULT
WINAPI
ddraw_surface7_SetColorKey
(
IDirectDrawSurface7
*
iface
,
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
DDCOLORKEY
FixedCKey
;
DDCOLORKEY
FixedCKey
;
struct
SCKContext
ctx
=
{
DD_OK
,
(
WINEDDCOLORKEY
*
)
(
CKey
?
&
FixedCKey
:
NULL
),
Flags
};
struct
SCKContext
ctx
=
{
DD_OK
,
(
WINEDDCOLORKEY
*
)
(
CKey
?
&
FixedCKey
:
NULL
),
Flags
};
...
@@ -2882,7 +2882,7 @@ static HRESULT WINAPI ddraw_surface3_SetColorKey(IDirectDrawSurface3 *iface, DWO
...
@@ -2882,7 +2882,7 @@ static HRESULT WINAPI ddraw_surface3_SetColorKey(IDirectDrawSurface3 *iface, DWO
*****************************************************************************/
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_surface7_SetPalette
(
IDirectDrawSurface7
*
iface
,
IDirectDrawPalette
*
Pal
)
static
HRESULT
WINAPI
ddraw_surface7_SetPalette
(
IDirectDrawSurface7
*
iface
,
IDirectDrawPalette
*
Pal
)
{
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
This
=
impl_from_IDirectDrawSurface7
(
iface
)
;
IDirectDrawPalette
*
oldPal
;
IDirectDrawPalette
*
oldPal
;
IDirectDrawSurfaceImpl
*
surf
;
IDirectDrawSurfaceImpl
*
surf
;
IDirectDrawPaletteImpl
*
PalImpl
=
(
IDirectDrawPaletteImpl
*
)
Pal
;
IDirectDrawPaletteImpl
*
PalImpl
=
(
IDirectDrawPaletteImpl
*
)
Pal
;
...
@@ -2934,7 +2934,7 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
...
@@ -2934,7 +2934,7 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
TRACE
(
"Setting palette on %p
\n
"
,
attach
);
TRACE
(
"Setting palette on %p
\n
"
,
attach
);
ddraw_surface7_SetPalette
(
attach
,
Pal
);
ddraw_surface7_SetPalette
(
attach
,
Pal
);
surf
=
(
IDirectDrawSurfaceImpl
*
)
attach
;
surf
=
impl_from_IDirectDrawSurface7
(
attach
)
;
ddraw_surface7_Release
(
attach
);
ddraw_surface7_Release
(
attach
);
}
}
}
}
...
@@ -3156,7 +3156,7 @@ static IDirectDrawSurfaceImpl *get_sub_mimaplevel(IDirectDrawSurfaceImpl *surfac
...
@@ -3156,7 +3156,7 @@ static IDirectDrawSurfaceImpl *get_sub_mimaplevel(IDirectDrawSurfaceImpl *surfac
ddraw_surface7_Release
(
next_level
);
ddraw_surface7_Release
(
next_level
);
return
(
IDirectDrawSurfaceImpl
*
)
next_level
;
return
impl_from_IDirectDrawSurface7
(
next_level
)
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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