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

Alexandre Julliard julliard at winehq.org
Thu Sep 8 14:52:10 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Sep  7 20:22:01 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_scissor_rect() 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 1b722f5..ac609fd 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2595,7 +2595,7 @@ HRESULT CDECL wined3d_device_set_scissor_rect(struct wined3d_device *device, con
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_scissor_rect(struct wined3d_device *device, RECT *rect)
+HRESULT CDECL wined3d_device_get_scissor_rect(const struct wined3d_device *device, RECT *rect)
 {
     TRACE("device %p, rect %p.\n", device, rect);
 
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index ddf6561..b05acae 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2245,7 +2245,7 @@ HRESULT __cdecl wined3d_device_get_render_target(struct wined3d_device *device,
         UINT render_target_idx, struct wined3d_surface **render_target);
 HRESULT __cdecl wined3d_device_get_sampler_state(const struct wined3d_device *device,
         UINT sampler_idx, WINED3DSAMPLERSTATETYPE state, DWORD *value);
-HRESULT __cdecl wined3d_device_get_scissor_rect(struct wined3d_device *device, RECT *rect);
+HRESULT __cdecl wined3d_device_get_scissor_rect(const struct wined3d_device *device, RECT *rect);
 BOOL __cdecl wined3d_device_get_software_vertex_processing(struct wined3d_device *device);
 HRESULT __cdecl wined3d_device_get_stream_source(const struct wined3d_device *device,
         UINT stream_idx, struct wined3d_buffer **buffer, UINT *offset, UINT *stride);




More information about the wine-cvs mailing list