chiark / gitweb /
Say when OK to mess with YPP client
[ypp-sc-tools.web-live.git] / pctb / pages.c
index 433ea36bfcbf9900385a86414a434a0e85dfdab2..c504c951e75956e77b2a3c2ad6e9504d169bab62 100644 (file)
@@ -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));