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

Alexandre Julliard julliard at winehq.org
Mon Oct 3 17:21:24 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Oct  3 20:22:52 2011 +0200

wined3d: Make the device parameter to wined3d_device_present() 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 d1bec23..8e4d827 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4045,7 +4045,7 @@ HRESULT CDECL wined3d_device_end_scene(struct wined3d_device *device)
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_present(struct wined3d_device *device, const RECT *src_rect,
+HRESULT CDECL wined3d_device_present(const struct wined3d_device *device, const RECT *src_rect,
         const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region)
 {
     UINT i;
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 208c5c0..8a38668 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2278,7 +2278,7 @@ HRESULT __cdecl wined3d_device_init_3d(struct wined3d_device *device, WINED3DPRE
 HRESULT __cdecl wined3d_device_init_gdi(struct wined3d_device *device, WINED3DPRESENT_PARAMETERS *present_parameters);
 HRESULT __cdecl wined3d_device_multiply_transform(struct wined3d_device *device,
         WINED3DTRANSFORMSTATETYPE state, const WINED3DMATRIX *matrix);
-HRESULT __cdecl wined3d_device_present(struct wined3d_device *device, const RECT *src_rect,
+HRESULT __cdecl wined3d_device_present(const struct wined3d_device *device, const RECT *src_rect,
         const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region);
 HRESULT __cdecl wined3d_device_process_vertices(struct wined3d_device *device,
         UINT src_start_idx, UINT dst_idx, UINT vertex_count, struct wined3d_buffer *dst_buffer,




More information about the wine-cvs mailing list