Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8968f8d5
Commit
8968f8d5
authored
Sep 08, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Cast-qual warning fix.
parent
0ebd271f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
texture.c
dlls/ddraw/texture.c
+2
-2
No files found.
dlls/ddraw/texture.c
View file @
8968f8d5
...
@@ -262,13 +262,13 @@ static IDirectDrawSurfaceImpl *
...
@@ -262,13 +262,13 @@ static IDirectDrawSurfaceImpl *
get_sub_mimaplevel
(
IDirectDrawSurfaceImpl
*
tex_ptr
)
get_sub_mimaplevel
(
IDirectDrawSurfaceImpl
*
tex_ptr
)
{
{
/* Now go down the mipmap chain to the next surface */
/* Now go down the mipmap chain to the next surface */
static
const
DDSCAPS2
mipmap_caps
=
{
DDSCAPS_MIPMAP
|
DDSCAPS_TEXTURE
,
0
,
0
,
0
};
static
DDSCAPS2
mipmap_caps
=
{
DDSCAPS_MIPMAP
|
DDSCAPS_TEXTURE
,
0
,
0
,
0
};
LPDIRECTDRAWSURFACE7
next_level
;
LPDIRECTDRAWSURFACE7
next_level
;
IDirectDrawSurfaceImpl
*
surf_ptr
;
IDirectDrawSurfaceImpl
*
surf_ptr
;
HRESULT
hr
;
HRESULT
hr
;
hr
=
IDirectDrawSurface7_GetAttachedSurface
(
ICOM_INTERFACE
(
tex_ptr
,
IDirectDrawSurface7
),
hr
=
IDirectDrawSurface7_GetAttachedSurface
(
ICOM_INTERFACE
(
tex_ptr
,
IDirectDrawSurface7
),
(
DDSCAPS2
*
)
&
mipmap_caps
,
&
next_level
);
&
mipmap_caps
,
&
next_level
);
if
(
FAILED
(
hr
))
return
NULL
;
if
(
FAILED
(
hr
))
return
NULL
;
surf_ptr
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
next_level
);
surf_ptr
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
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