X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fpages.c;h=c504c951e75956e77b2a3c2ad6e9504d169bab62;hb=41ac8cfeadd4eac0927b8fce086c805c2753ba77;hp=433ea36bfcbf9900385a86414a434a0e85dfdab2;hpb=7f70ef0b19d87fed262093adf9db8dc9b4a3c881;p=ypp-sc-tools.main.git diff --git a/pctb/pages.c b/pctb/pages.c index 433ea36..c504c95 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -523,11 +523,9 @@ static CanonImage *convert_page(Snapshot *sn) { unsigned char *pixel= sn->data; CANONICALISE_IMAGE(im, sn->w, sn->h, { - rgb= - (pixel[0] << 16) | - (pixel[1] << 8) | - (pixel[2] ); - pixel += 3; + r= *pixel++; + g= *pixel++; + b= *pixel++; }); sysassert(!ferror(screenshot_file));