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
8b5a5e53
Commit
8b5a5e53
authored
Jan 14, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex: Remove superfluous pointer casts.
parent
5ee7a104
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ddraw.c
dlls/ddrawex/ddraw.c
+3
-3
main.c
dlls/ddrawex/main.c
+1
-1
surface.c
dlls/ddrawex/surface.c
+2
-2
No files found.
dlls/ddrawex/ddraw.c
View file @
8b5a5e53
...
...
@@ -604,7 +604,7 @@ struct enummodes_ctx
static
HRESULT
WINAPI
enum_modes_cb2
(
DDSURFACEDESC2
*
ddsd2
,
void
*
vctx
)
{
struct
enummodes_ctx
*
ctx
=
(
struct
enummodes_ctx
*
)
vctx
;
struct
enummodes_ctx
*
ctx
=
vctx
;
DDSURFACEDESC
ddsd
;
DDSD2_to_DDSD
(
ddsd2
,
&
ddsd
);
...
...
@@ -662,7 +662,7 @@ struct enumsurfaces4_ctx
static
HRESULT
WINAPI
enum_surfaces_wrapper
(
IDirectDrawSurface4
*
surf4
,
DDSURFACEDESC2
*
ddsd2
,
void
*
vctx
)
{
struct
enumsurfaces4_ctx
*
ctx
=
(
struct
enumsurfaces4_ctx
*
)
vctx
;
struct
enumsurfaces4_ctx
*
ctx
=
vctx
;
IDirectDrawSurface4
*
outer
=
dds_get_outer
(
surf4
);
IDirectDrawSurface4_AddRef
(
outer
);
IDirectDrawSurface4_Release
(
surf4
);
...
...
@@ -695,7 +695,7 @@ struct enumsurfaces_ctx
static
HRESULT
WINAPI
enum_surfaces_cb2
(
IDirectDrawSurface4
*
surf4
,
DDSURFACEDESC2
*
ddsd2
,
void
*
vctx
)
{
struct
enumsurfaces_ctx
*
ctx
=
(
struct
enumsurfaces_ctx
*
)
vctx
;
struct
enumsurfaces_ctx
*
ctx
=
vctx
;
IDirectDrawSurface
*
surf1
;
DDSURFACEDESC
ddsd
;
...
...
dlls/ddrawex/main.c
View file @
8b5a5e53
...
...
@@ -290,7 +290,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
factory
->
pfnCreateInstance
=
CreateDirectDrawFactory
;
*
ppv
=
(
IClassFactory
*
)
factory
;
*
ppv
=
factory
;
return
S_OK
;
}
...
...
dlls/ddrawex/surface.c
View file @
8b5a5e53
...
...
@@ -317,7 +317,7 @@ struct enumsurfaces_wrap
static
HRESULT
WINAPI
enumsurfaces_wrap_cb
(
IDirectDrawSurface4
*
surf
,
DDSURFACEDESC2
*
desc
,
void
*
vctx
)
{
struct
enumsurfaces_wrap
*
ctx
=
(
struct
enumsurfaces_wrap
*
)
vctx
;
struct
enumsurfaces_wrap
*
ctx
=
vctx
;
IDirectDrawSurface4
*
outer
=
dds_get_outer
(
surf
);
TRACE
(
"Returning outer surface %p for inner surface %p
\n
"
,
outer
,
surf
);
...
...
@@ -350,7 +350,7 @@ static HRESULT WINAPI
enumsurfaces_thunk_cb
(
IDirectDrawSurface4
*
surf
,
DDSURFACEDESC2
*
desc2
,
void
*
vctx
)
{
IDirectDrawSurfaceImpl
*
This
=
impl_from_dds4
(
surf
);
struct
enumsurfaces_thunk
*
ctx
=
(
struct
enumsurfaces_thunk
*
)
vctx
;
struct
enumsurfaces_thunk
*
ctx
=
vctx
;
DDSURFACEDESC
desc
;
TRACE
(
"Thunking back to IDirectDrawSurface3
\n
"
);
...
...
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