Henri Verbeet : wined3d: Make the surface parameter to surface_convert_color_to_float() const.

Alexandre Julliard julliard at winehq.org
Mon Jul 18 12:46:58 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Jul 17 22:29:06 2011 +0200

wined3d: Make the surface parameter to surface_convert_color_to_float() const.

---

 dlls/wined3d/surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 069861e..92a4ae5 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2477,11 +2477,11 @@ void surface_add_dirty_rect(struct wined3d_surface *surface, const WINED3DBOX *d
     }
 }
 
-static BOOL surface_convert_color_to_float(struct wined3d_surface *surface,
+static BOOL surface_convert_color_to_float(const struct wined3d_surface *surface,
         DWORD color, WINED3DCOLORVALUE *float_color)
 {
     const struct wined3d_format *format = surface->resource.format;
-    struct wined3d_device *device = surface->resource.device;
+    const struct wined3d_device *device = surface->resource.device;
 
     switch (format->id)
     {




More information about the wine-cvs mailing list