Search
lxdream.org :: lxdream :: r289:111dfb1516a6
lxdream 0.9.1
released Jun 29
Download Now
changeset289:111dfb1516a6
parent288:a42f998226fb
child290:4d11ef6766be
authornkeynes
dateMon Jan 15 12:17:02 2007 +0000 (13 years ago)
Fix output of yuv_decode() (yes, again...)
src/pvr2/texcache.c
1.1 --- a/src/pvr2/texcache.c Mon Jan 15 10:41:30 2007 +0000
1.2 +++ b/src/pvr2/texcache.c Mon Jan 15 12:17:02 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: texcache.c,v 1.12 2007-01-15 10:37:02 nkeynes Exp $
1.6 + * $Id: texcache.c,v 1.13 2007-01-15 12:17:02 nkeynes Exp $
1.7 *
1.8 * Texture cache. Responsible for maintaining a working set of OpenGL
1.9 * textures.
1.10 @@ -290,7 +290,7 @@
1.11 if( r > 255 ) { r = 255; } else if( r < 0 ) { r = 0; }
1.12 if( g > 255 ) { g = 255; } else if( g < 0 ) { g = 0; }
1.13 if( b > 255 ) { b = 255; } else if( b < 0 ) { b = 0; }
1.14 - return 0xFF000000 | (r<<24) | (g<<16) | (b<<16);
1.15 + return 0xFF000000 | (r<<16) | (g<<8) | (b);
1.16 }
1.17
1.18
.