src/hg/hgTracks/wigTrack.c 1.100
1.100 2009/12/17 23:04:35 hiram
Allow whisker plots to show colors in positive and negative tracks
Index: src/hg/hgTracks/wigTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/wigTrack.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -b -B -U 4 -r1.99 -r1.100
--- src/hg/hgTracks/wigTrack.c 9 Dec 2009 03:30:23 -0000 1.99
+++ src/hg/hgTracks/wigTrack.c 17 Dec 2009 23:04:35 -0000 1.100
@@ -738,9 +738,8 @@
int preDrawZero, struct wigCartOptions *wigCart, struct track *tg, struct hvGfx *hvg)
/* allocate and fill in a coloring array based on another track */
{
char *colorTrack = wigCart->colorTrack;
-boolean whiskers = (wigCart->windowingFunction == wiggleWindowingWhiskers);
int x1;
Color *colorArray = NULL; /* Array of pixels to be drawn. */
/* Set up the color by array. Determine color of each pixel
@@ -756,21 +755,14 @@
double dataValue; /* the data value in data space */
dataValue = preDraw[preDrawIndex].smooth;
/* negative data is the alternate color */
- if (whiskers)
- {
- colorArray[x1] = tg->ixColor;
- }
- else
- {
if (dataValue < 0.0)
colorArray[x1] = tg->ixAltColor;
else
colorArray[x1] = tg->ixColor;
}
}
- }
/* Fill in colors from alternate track if necessary. */
if(colorTrack != NULL)
{