b4fbc12b6736ac5352f650ab7a074ee21a9e2147
kent
  Tue Apr 19 17:02:10 2011 -0700
Making autoscale work as you'd hope for multiWigs - where all the wigs have a common scale.
diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h
index b7d27b8..d83511e 100644
--- src/hg/hgTracks/hgTracks.h
+++ src/hg/hgTracks/hgTracks.h
@@ -146,31 +146,31 @@
     void *extraUiData;	/* Pointer for track specific filter etc. data. */
 
     void (*trackFilter)(struct track *tg);
     /* Stuff to handle user interface parts. */
 
     void *customPt;  /* Misc pointer variable unique to track. */
     int customInt;   /* Misc int variable unique to track. */
     int subType;     /* Variable to say what subtype this is for similar tracks
 	              * to share code. */
 
     /* Stuff for the various wig incarnations - sample, wig, bigWig */
     float minRange, maxRange;	  /*min and max range for sample tracks 0.0 to 1000.0*/
     float scaleRange;             /* What to scale samples by to get logical 0-1 */
     double graphUpperLimit, graphLowerLimit;	/* Limits of actual data in window for wigs. */
     struct preDrawContainer *preDrawContainer;  /* Numbers to graph in wig, one per pixel */
-    void (*wigLoadPreDraw)(struct track *tg, int seqStart, int seqEnd, int width);  
+    struct preDrawContainer *(*loadPreDraw)(struct track *tg, int seqStart, int seqEnd, int width);  
     /* Do bits that load the predraw buffer.  Called to set preDrawContainer */
 
     struct bbiFile *bbiFile;	/* Associated bbiFile for bigWig or bigBed. */
 
     int bedSize;		/* Number of fields if a bed file. */
     boolean isBigBed;		/* If a bed, is it a bigBed? */
 
     boolean isRemoteSql;	/* Is using a remote mySQL connection. */
     char *remoteSqlHost;	/* Host machine name for remote DB. */
     char *remoteSqlUser;	/* User name for remote DB. */
     char *remoteSqlPassword;	/* Password for remote DB. */
     char *remoteSqlDatabase;	/* Database in remote DB. */
     char *remoteSqlTable;	/* Table name in remote DB. */
 
     char *otherDb;		/* Other database for an axt track. */