- for(i = 0; i < 256; i++) {
- lut[i][0] = ((i >> 6) * 0x55);
- lut[i][1] = ((((i >> 3) & 7) * 0x49) >> 1);
- lut[i][2] = (((i & 7) * 0x49) >> 1);
- }
-
- for(i = 0; i < sizeof(screen_conv); i += 3) {
- screen_conv[i] = lut[screen[i/3]][0];
- screen_conv[i+1] = lut[screen[i/3]][1];
- screen_conv[i+2] = lut[screen[i/3]][2];
- }