From 0ce282edf7b56ab2b82d61b7370558f9a627a0ad Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 23 Jun 2011 11:43:37 +0200 Subject: [PATCH] wined3d: Make the surface parameter to surface_is_offscreen() const. --- dlls/wined3d/surface.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 945640f9a38..3682e10f5b3 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -6207,7 +6207,7 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD flag, const return WINED3D_OK; } -BOOL surface_is_offscreen(struct wined3d_surface *surface) +BOOL surface_is_offscreen(const struct wined3d_surface *surface) { struct wined3d_swapchain *swapchain = surface->container.u.swapchain; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index ed8ae0d6747..e23b91742b7 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2110,7 +2110,7 @@ HRESULT surface_color_fill(struct wined3d_surface *s, const RECT *rect, const WI GLenum surface_get_gl_buffer(struct wined3d_surface *surface) DECLSPEC_HIDDEN; BOOL surface_init_sysmem(struct wined3d_surface *surface) DECLSPEC_HIDDEN; void surface_internal_preload(struct wined3d_surface *surface, enum WINED3DSRGB srgb) DECLSPEC_HIDDEN; -BOOL surface_is_offscreen(struct wined3d_surface *surface) DECLSPEC_HIDDEN; +BOOL surface_is_offscreen(const struct wined3d_surface *surface) DECLSPEC_HIDDEN; HRESULT surface_load(struct wined3d_surface *surface, BOOL srgb) DECLSPEC_HIDDEN; void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN;