src/hg/hgTracks/simpleTracks.c 1.149
1.149 2010/06/05 19:29:42 braney
add support for 32-bit color (make USE_PNG have global consequence)
Index: src/hg/hgTracks/simpleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/simpleTracks.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -b -B -U 4 -r1.148 -r1.149
--- src/hg/hgTracks/simpleTracks.c 4 Jun 2010 21:57:00 -0000 1.148
+++ src/hg/hgTracks/simpleTracks.c 5 Jun 2010 19:29:42 -0000 1.149
@@ -3295,15 +3295,15 @@
AllocArray(gapUseCounts, width);
countTrackBaseUse(tg, width, baseWidth, useCounts, gapUseCounts, hvg->rc);
grayThreshold(useCounts, width);
-hvGfxVerticalSmear(hvg,xOff,yOff,width,lineHeight,useCounts,TRUE);
+hvGfxVerticalSmear8(hvg,xOff,yOff,width,lineHeight,useCounts,TRUE);
freeMem(useCounts);
if (gapUseCounts != NULL)
{
int midY = yOff + (tg->heightPer>>1);
grayThreshold(gapUseCounts, width);
- hvGfxVerticalSmear(hvg,xOff,midY,width,1,gapUseCounts,TRUE);
+ hvGfxVerticalSmear8(hvg,xOff,midY,width,1,gapUseCounts,TRUE);
freeMem(gapUseCounts);
}
}
@@ -6338,14 +6338,14 @@
for(jj=0; jj < width + 2; jj++)
{
if (buf[jj] == 255) buf[jj] = 0;
- else if (buf[jj] == 0x44)buf[jj] = MG_RED;
+ else if (buf[jj] == 0x44)buf[jj] = brickColor;
else if (buf[jj] == 0x69)buf[jj] = greenColor;
else if (buf[jj] == 0x5e)buf[jj] = blueColor;
}
- hvGfxVerticalSmear(hvg,xOff,yOff+ii,width ,1,buf,TRUE);
+ hvGfxVerticalSmear8(hvg,xOff,yOff+ii,width ,1,buf,TRUE);
}
hvGfxUnclip(hvg);
fclose(f);