| 1198 | |
| 1199 | |
| 1200 | void CorrectEndDXT1(ILushort *ex0, ILushort *ex1, ILboolean HasAlpha) |
| 1201 | { |
| 1202 | ILushort Temp; |
| 1203 | |
| 1204 | if (HasAlpha) { |
| 1205 | if (*ex0 > *ex1) { |
| 1206 | Temp = *ex0; |
| 1207 | *ex0 = *ex1; |
| 1208 | *ex1 = Temp; |
| 1209 | } |
| 1210 | } |
| 1211 | else { |
| 1212 | if (*ex0 < *ex1) { |
| 1213 | Temp = *ex0; |
| 1214 | *ex0 = *ex1; |
| 1215 | *ex1 = Temp; |
| 1216 | } |
| 1217 | } |
| 1218 | |
| 1219 | return; |
| 1220 | } |
| 1221 | |
| 1222 | |
| 1223 | void PreMult(ILushort *Data, ILubyte *Alpha) |