Commit 8968f8d5 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ddraw: Cast-qual warning fix.

parent 0ebd271f
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment