[PATCH 4/5] wined3d: Make the surface parameter to surface_convert_color_to_float() const.

Henri Verbeet hverbeet at codeweavers.com
Sun Jul 17 15:29:06 CDT 2011


---
 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)
     {
-- 
1.7.3.4




More information about the wine-patches mailing list