1typedef struct _ScaleRec *ScaleWidget;
2typedef struct
3{
4  short *x;
5  unsigned short *width;
6} Table;
7typedef struct
8{
9  Table table;
10} ScalePart;
11typedef struct _ScaleRec
12{
13  ScalePart scale;
14} ScaleRec;
15static int
16FindPixel (ScaleWidget sw, short x, short y,
17       short * img_x, short * img_y, unsigned long * img_pixel)
18{
19  if (sw->scale.table.x[(int) *img_x] +
20      (short) sw->scale.table.width[(int) *img_x] < x)
21    {
22      ++*img_x;
23      return FindPixel (sw, x, y, img_x, img_y, img_pixel);
24    }
25}
26