wined3d: Make the surface parameter to d3dfmt_p8_init_palette() const.
This commit is contained in:
parent
3e9930f307
commit
abfd6b479a
|
@ -4245,10 +4245,10 @@ HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_c
|
||||||
return WINED3D_OK;
|
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;
|
const struct wined3d_device *device = surface->resource.device;
|
||||||
struct wined3d_palette *pal = surface->palette;
|
const struct wined3d_palette *pal = surface->palette;
|
||||||
BOOL index_in_alpha = FALSE;
|
BOOL index_in_alpha = FALSE;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
|
|
@ -2162,7 +2162,7 @@ typedef enum {
|
||||||
|
|
||||||
HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_ck, BOOL use_texturing,
|
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;
|
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;
|
BOOL palette9_changed(struct wined3d_surface *surface) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue