| 178 | } |
| 179 | |
| 180 | static void ConvertCRColorsToAndroid( lUInt8 * buf, int dx, int dy ) |
| 181 | { |
| 182 | int sz = dx * dy; |
| 183 | for ( lUInt8 * p = buf; --sz>=0; p+=4 ) { |
| 184 | // invert A |
| 185 | p[3] ^= 0xFF; |
| 186 | // swap R and B |
| 187 | lUInt8 c = p[0]; |
| 188 | p[0] = p[2]; |
| 189 | p[2] = c; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | class LVColorDrawBufEx : public LVColorDrawBuf { |
| 194 | public: |