Module: wine Branch: master Commit: a86785d06519ffb9338fcee08492e1ed8fab958f URL: http://source.winehq.org/git/wine.git/?a=commit;h=a86785d06519ffb9338fcee084...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jul 11 22:04:31 2011 +0200
wined3d: Make the swapchain parameter to x11_copy_to_screen() const.
---
dlls/wined3d/swapchain.c | 4 ++-- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 405d89f..4752e39 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -644,9 +644,9 @@ static const struct wined3d_swapchain_ops swapchain_gl_ops = };
/* Helper function that blits the front buffer contents to the target window. */ -void x11_copy_to_screen(struct wined3d_swapchain *swapchain, const RECT *rect) +void x11_copy_to_screen(const struct wined3d_swapchain *swapchain, const RECT *rect) { - struct wined3d_surface *front; + const struct wined3d_surface *front; POINT offset = {0, 0}; HDC src_dc, dst_dc; RECT draw_rect; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index d4c5e9f..f104a19 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2451,7 +2451,7 @@ struct wined3d_swapchain HWND backup_wnd; };
-void x11_copy_to_screen(struct wined3d_swapchain *swapchain, const RECT *rect) DECLSPEC_HIDDEN; +void x11_copy_to_screen(const struct wined3d_swapchain *swapchain, const RECT *rect) DECLSPEC_HIDDEN;
struct wined3d_context *swapchain_get_context(struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN; void swapchain_destroy_contexts(struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN;