Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_device_caps() const.

Alexandre Julliard julliard at winehq.org
Thu Sep 22 13:39:47 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Sep 21 21:01:46 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_device_caps() const.

---

 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,




More information about the wine-cvs mailing list