ddraw: Cast-qual warning fix

Andrew Talbot Andrew.Talbot at talbotville.com
Fri Sep 8 09:31:35 CDT 2006


Changelog:
    ddraw: Cast-qual warning fix.

diff -urN a/dlls/ddraw/texture.c b/dlls/ddraw/texture.c
--- a/dlls/ddraw/texture.c	2006-06-19 11:44:41.000000000 +0100
+++ b/dlls/ddraw/texture.c	2006-09-08 15:10:13.000000000 +0100
@@ -262,13 +262,13 @@
 get_sub_mimaplevel(IDirectDrawSurfaceImpl *tex_ptr)
 {
     /* 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;
     IDirectDrawSurfaceImpl *surf_ptr;
     HRESULT hr;
 
     hr = IDirectDrawSurface7_GetAttachedSurface(ICOM_INTERFACE(tex_ptr, IDirectDrawSurface7),
-                                                (DDSCAPS2 *) &mipmap_caps, &next_level);
+                                                &mipmap_caps, &next_level);
     if (FAILED(hr)) return NULL;
 
     surf_ptr = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirectDrawSurface7, next_level);



More information about the wine-patches mailing list