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

Alexandre Julliard julliard at winehq.org
Tue Oct 11 14:03:39 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Oct 11 17:24:53 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_front_buffer_data() 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 bbf43b3..862f1f6 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4456,7 +4456,7 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_front_buffer_data(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_front_buffer_data(const struct wined3d_device *device,
         UINT swapchain_idx, struct wined3d_surface *dst_surface)
 {
     struct wined3d_swapchain *swapchain;
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index b0b63fd..d8658de 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2216,7 +2216,7 @@ HRESULT __cdecl wined3d_device_get_depth_stencil(struct wined3d_device *device,
 HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
 HRESULT __cdecl wined3d_device_get_display_mode(const struct wined3d_device *device,
         UINT swapchain_idx, WINED3DDISPLAYMODE *mode);
-HRESULT __cdecl wined3d_device_get_front_buffer_data(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_front_buffer_data(const struct wined3d_device *device,
         UINT swapchain_idx, struct wined3d_surface *dst_surface);
 void __cdecl wined3d_device_get_gamma_ramp(struct wined3d_device *device, UINT swapchain_idx, WINED3DGAMMARAMP *ramp);
 HRESULT __cdecl wined3d_device_get_index_buffer(const struct wined3d_device *device,




More information about the wine-cvs mailing list