X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=pctb%2Fstructure.h;h=0ad92a618e62386844f2ac50ebf652ac981ce754;hp=e8ea9f9804a654f66e26e8c2aec3b97dc220b3c0;hb=8afdc8c88ffd4cfb9b28945c877884968bd08a96;hpb=f2c5d45ada202f2ad2640b260cac2fd7bb83eb3e diff --git a/pctb/structure.h b/pctb/structure.h index e8ea9f9..0ad92a6 100644 --- a/pctb/structure.h +++ b/pctb/structure.h @@ -77,4 +77,13 @@ CanonImage *alloc_canon_image(int w, int h); }while(0) +#define CANONIMG_ALSO_STORERGB(ri) \ + do{ \ + unsigned char *rip= RI_PIXEL((ri),x,y); \ + rip[0]= rgb >> 16; \ + rip[1]= rgb >> 8; \ + rip[2]= rgb; \ + }while(0) + + #endif /*STRUCTURE_H*/