Search
lxdream.org :: lxdream/src/pvr2/scene.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/scene.c
changeset 1298:d0eb2307b847
prev1257:e1314ad3e7cc
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
1.1 --- a/src/pvr2/scene.c Sun Mar 04 21:28:48 2012 +1000
1.2 +++ b/src/pvr2/scene.c Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -37,11 +37,6 @@
1.4 rgba[3] = ((float)(((bgra&0xFF000000)>>24) + 1)) / 256.0;
1.5 }
1.6
1.7 -static inline uint32_t bgra_to_rgba(uint32_t bgra)
1.8 -{
1.9 - return (bgra&0xFF00FF00) | ((bgra&0x00FF0000)>>16) | ((bgra&0x000000FF)<<16);
1.10 -}
1.11 -
1.12 /**
1.13 * Convert a half-float (16-bit) FP number to a regular 32-bit float.
1.14 * Source is 1-bit sign, 5-bit exponent, 10-bit mantissa.
1.15 @@ -468,7 +463,7 @@
1.16
1.17 static void scene_add_cheap_shadow_vertexes( struct vertex_struct *src, struct vertex_struct *dest, int count )
1.18 {
1.19 - unsigned int i, j;
1.20 + unsigned int i;
1.21
1.22 for( i=0; i<count; i++ ) {
1.23 dest->x = src->x;
.