[PATCH 4/5] wined3d: Make the device parameter to wined3d_device_get_device_caps() const.

Henri Verbeet hverbeet at codeweavers.com
Wed Sep 21 14:01:46 CDT 2011


---
 dlls/wined3d/device.c  |    2 +-
 include/wine/wined3d.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index f598ea3..fad63e4 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3913,7 +3913,7 @@ HRESULT CDECL wined3d_device_get_back_buffer(const struct wined3d_device *device
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_device_caps(struct wined3d_device *device, WINED3DCAPS *caps)
+HRESULT CDECL wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps)
 {
     TRACE("device %p, caps %p.\n", device, caps);
 
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index a6071ea..edc2e40 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2215,7 +2215,7 @@ HRESULT __cdecl wined3d_device_get_creation_parameters(struct wined3d_device *de
 HRESULT __cdecl wined3d_device_get_current_texture_palette(struct wined3d_device *device, UINT *palette_idx);
 HRESULT __cdecl wined3d_device_get_depth_stencil(struct wined3d_device *device,
         struct wined3d_surface **depth_stencil);
-HRESULT __cdecl wined3d_device_get_device_caps(struct wined3d_device *device, WINED3DCAPS *caps);
+HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
 HRESULT __cdecl wined3d_device_get_display_mode(struct wined3d_device *device,
         UINT swapchain_idx, WINED3DDISPLAYMODE *mode);
 HRESULT __cdecl wined3d_device_get_front_buffer_data(struct wined3d_device *device,
-- 
1.7.3.4




More information about the wine-patches mailing list