summaryrefslogtreecommitdiff
path: root/src/xine-engine/alphablend.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-20 00:35:07 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-20 00:35:07 +0000
commit27cf4cc94874faf34c461e2f745a917d3c98b095 (patch)
treee199b95ef303e873c59d3d53993b27bc1dfadb2b /src/xine-engine/alphablend.c
parent1edd2f2a81cbf1d5385f5a9f12bf8ff2c05c701d (diff)
downloadxine-lib-27cf4cc94874faf34c461e2f745a917d3c98b095.tar.gz
xine-lib-27cf4cc94874faf34c461e2f745a917d3c98b095.tar.bz2
Fix generic warnings.
CVS patchset: 8063 CVS date: 2006/06/20 00:35:07
Diffstat (limited to 'src/xine-engine/alphablend.c')
-rw-r--r--src/xine-engine/alphablend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xine-engine/alphablend.c b/src/xine-engine/alphablend.c
index 8d10d0414..b38042369 100644
--- a/src/xine-engine/alphablend.c
+++ b/src/xine-engine/alphablend.c
@@ -1895,7 +1895,7 @@ static void colorToPalette(const uint32_t *icolor, unsigned char *palette_p,
unsigned num_xvmc_components, char *xvmc_components)
{
const clut_t *color = (const clut_t *) icolor;
- int i;
+ unsigned int i;
for (i=0; i<num_xvmc_components; ++i) {
switch(xvmc_components[i]) {
case 'V': *palette_p = color->cr; break;
@@ -1903,7 +1903,7 @@ static void colorToPalette(const uint32_t *icolor, unsigned char *palette_p,
case 'Y':
default: *palette_p = color->y; break;
}
- *palette_p++;
+ palette_p++;
}
}
@@ -1912,7 +1912,7 @@ 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)
{
- register int i;
+ register unsigned int i;
register const uint32_t *cluts = p->cluts + first_xx44_entry;
for (i=0; i<num_xx44_entries; ++i) {
@@ -1926,7 +1926,7 @@ void _x_xx44_to_xvmc_palette(const xx44_palette_t *p,unsigned char *xvmc_palette
static int xx44_paletteIndex(xx44_palette_t *p, int color, uint32_t clut)
{
- register int i;
+ register unsigned int i;
register uint32_t *cluts = p->cluts;
register int tmp;