summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2013-09-27 11:06:14 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2013-09-27 11:06:14 +0300
commit4162fe03c487c3867abcfcb755144a5ad678e9c3 (patch)
tree271b166d1d4204ddce9be75db2dc73ade155501a
parent25ab949a5454355c1dbd6de7e5373af714acaeb7 (diff)
downloadxine-lib-4162fe03c487c3867abcfcb755144a5ad678e9c3.tar.gz
xine-lib-4162fe03c487c3867abcfcb755144a5ad678e9c3.tar.bz2
Added const
-rw-r--r--include/xine/alphablend.h2
-rw-r--r--src/xine-engine/alphablend.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/xine/alphablend.h b/include/xine/alphablend.h
index 6df5ad809..f4aeb442f 100644
--- a/include/xine/alphablend.h
+++ b/include/xine/alphablend.h
@@ -106,7 +106,7 @@ void _x_dispose_xx44_palette(xx44_palette_t *p) XINE_PROTECTED;
void _x_xx44_to_xvmc_palette(const xx44_palette_t *p,unsigned char *xvmc_palette,
unsigned first_xx44_entry, unsigned num_xx44_entries,
- unsigned num_xvmc_components, char *xvmc_components) XINE_PROTECTED;
+ unsigned num_xvmc_components, const char *xvmc_components) XINE_PROTECTED;
#endif
diff --git a/src/xine-engine/alphablend.c b/src/xine-engine/alphablend.c
index db43fd53a..6e7191ed2 100644
--- a/src/xine-engine/alphablend.c
+++ b/src/xine-engine/alphablend.c
@@ -1923,7 +1923,7 @@ void _x_dispose_xx44_palette(xx44_palette_t *p)
}
static void colorToPalette(const uint32_t *icolor, unsigned char *palette_p,
- unsigned num_xvmc_components, char *xvmc_components)
+ unsigned num_xvmc_components, const char *xvmc_components)
{
const clut_t *color = (const clut_t *) icolor;
unsigned int i;
@@ -1941,7 +1941,7 @@ static void colorToPalette(const uint32_t *icolor, unsigned char *palette_p,
void _x_xx44_to_xvmc_palette(const xx44_palette_t *p,unsigned char *xvmc_palette,
unsigned first_xx44_entry, unsigned num_xx44_entries,
- unsigned num_xvmc_components, char *xvmc_components)
+ unsigned num_xvmc_components, const char *xvmc_components)
{
register unsigned int i;
register const uint32_t *cluts = p->cluts + first_xx44_entry;