+ } else if(header.mode == 0) {
+ int t;
+ if(header.mode == 3) { // palette or grayscale?
+ alphacolor[0] = data[1];
+ alphacolor[1] = data[3];
+ alphacolor[2] = data[5];
+ } else {
+ alphacolor[0] = alphacolor[1] = alphacolor[2] = data[1];
+ }
+ if(VERBOSE(2))
+ printf("found alpha color: %02x%02x%02x\n", alphacolor[0], alphacolor[1], alphacolor[2]);
+ hasalphacolor = 1;
+ } else {
+ if(VERBOSE(2))
+ printf("ignoring tRNS %d entry (%d bytes)\n", header.mode, len);