revision 289:111dfb1516a6
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 289:111dfb1516a6 |
parent | 288:a42f998226fb |
child | 290:4d11ef6766be |
author | nkeynes |
date | Mon Jan 15 12:17:02 2007 +0000 (16 years ago) |
Fix output of yuv_decode() (yes, again...)
1.1 --- a/src/pvr2/texcache.c Mon Jan 15 10:41:30 2007 +00001.2 +++ b/src/pvr2/texcache.c Mon Jan 15 12:17:02 2007 +00001.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 OpenGL1.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 }
.