chiark / gitweb /
New inline function ri_rgb; introduce typedef for rgb sample
[ypp-sc-tools.main.git] / pctb / structure.h
index f3fbb72ed2d157ea01a3b103e2d2854544bb2f85..beadfed469a9476644ce4673d9b6cfa68e2fbf7f 100644 (file)
@@ -34,7 +34,7 @@
 
 
 typedef struct {
-  unsigned long rgb; /* on screen */
+  Rgb rgb; /* on screen */
   char c; /* canonical */
 } CanonColourInfo;
 
@@ -45,7 +45,7 @@ CanonImage *alloc_canon_image(int w, int h);
 #define CANONICALISE_IMAGE(im,w,h, COMPUTE_RGB) do{            \
     /* compute_rgb should be a number of statements, or                \
      * a block, which assigns to                               \
-     *   unsigned long rgb;                                    \
+     *   Rgb rgb;                                              \
      * given the values of                                     \
      *   int x,y;                                              \
      * all of which are anamorphic.  Result is stored in im.   \