Henri Verbeet : wined3d: Make the surface parameter to d3dfmt_p8_init_palette() const.
Alexandre Julliard
julliard at winehq.org
Mon Jul 11 13:17:48 CDT 2011
Module: wine
Branch: master
Commit: abfd6b479a884898580beaaefa2b0f15a8351822
URL: http://source.winehq.org/git/wine.git/?a=commit;h=abfd6b479a884898580beaaefa2b0f15a8351822
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jul 11 01:06:43 2011 +0200
wined3d: Make the surface parameter to d3dfmt_p8_init_palette() const.
---
dlls/wined3d/surface.c | 6 +++---
dlls/wined3d/wined3d_private.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 110e206..f0cfeb4 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4245,10 +4245,10 @@ HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_c
return WINED3D_OK;
}
-void d3dfmt_p8_init_palette(struct wined3d_surface *surface, BYTE table[256][4], BOOL colorkey)
+void d3dfmt_p8_init_palette(const struct wined3d_surface *surface, BYTE table[256][4], BOOL colorkey)
{
- struct wined3d_device *device = surface->resource.device;
- struct wined3d_palette *pal = surface->palette;
+ const struct wined3d_device *device = surface->resource.device;
+ const struct wined3d_palette *pal = surface->palette;
BOOL index_in_alpha = FALSE;
unsigned int i;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index c2cb075..ca852ee 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -2162,7 +2162,7 @@ typedef enum {
HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_ck, BOOL use_texturing,
struct wined3d_format *format, CONVERT_TYPES *convert) DECLSPEC_HIDDEN;
-void d3dfmt_p8_init_palette(struct wined3d_surface *surface, BYTE table[256][4], BOOL colorkey) DECLSPEC_HIDDEN;
+void d3dfmt_p8_init_palette(const struct wined3d_surface *surface, BYTE table[256][4], BOOL colorkey) DECLSPEC_HIDDEN;
BOOL palette9_changed(struct wined3d_surface *surface) DECLSPEC_HIDDEN;
More information about the wine-cvs
mailing list