Andrew Talbot : ddraw: Cast-qual warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Sun Sep 10 03:28:23 CDT 2006


Module: wine
Branch: master
Commit: 8968f8d55d57a88f2e925d52baf2adced3c3204d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=8968f8d55d57a88f2e925d52baf2adced3c3204d

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Sep  8 15:31:35 2006 +0100

ddraw: Cast-qual warning fix.

---

 dlls/ddraw/texture.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/texture.c b/dlls/ddraw/texture.c
index c3a2717..a29b26e 100644
--- a/dlls/ddraw/texture.c
+++ b/dlls/ddraw/texture.c
@@ -262,13 +262,13 @@ static IDirectDrawSurfaceImpl *
 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-cvs mailing list