From 013991e6e41c00a64dbcf26d09e1bdd3fd586e85 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 21 Sep 2011 21:01:47 +0200 Subject: [PATCH] wined3d: Make the device parameter to wined3d_device_get_display_mode() 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 fad63e46fd2..d1bec23d753 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3920,7 +3920,7 @@ HRESULT CDECL wined3d_device_get_device_caps(const struct wined3d_device *device return wined3d_get_device_caps(device->wined3d, device->adapter->ordinal, device->devType, caps); } -HRESULT CDECL wined3d_device_get_display_mode(struct wined3d_device *device, +HRESULT CDECL wined3d_device_get_display_mode(const struct wined3d_device *device, UINT swapchain_idx, WINED3DDISPLAYMODE *mode) { struct wined3d_swapchain *swapchain; diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index edc2e403bde..91efa2d036c 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2216,7 +2216,7 @@ HRESULT __cdecl wined3d_device_get_current_texture_palette(struct wined3d_device HRESULT __cdecl wined3d_device_get_depth_stencil(struct wined3d_device *device, struct wined3d_surface **depth_stencil); 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, +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, UINT swapchain_idx, struct wined3d_surface *dst_surface);