OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 const int col = texcache[i * side + j]; | 1041 const int col = texcache[i * side + j]; |
1042 im->rect_float[i * side + j] *= (((char *)&col)[
0] + ((char *)&col)[1] + ((char *)&col)[2]) / 3.0f / 255.0f; | 1042 im->rect_float[i * side + j] *= (((char *)&col)[
0] + ((char *)&col)[1] + ((char *)&col)[2]) / 3.0f / 255.0f; |
1043 } | 1043 } |
1044 } | 1044 } |
1045 | 1045 |
1046 MEM_freeN(texcache); | 1046 MEM_freeN(texcache); |
1047 } | 1047 } |
1048 | 1048 |
1049 return im; | 1049 return im; |
1050 } | 1050 } |
error: old chunk mismatch |
OLD | NEW |