e0b7a6700dfca47e0723d2d5a2e5b3c745f51315 jcasper Tue Feb 28 12:38:00 2023 -0800 Fixing a few missed cases for transparency, refs #30569 diff --git src/hg/hgTracks/hicTrack.c src/hg/hgTracks/hicTrack.c index 684482d..ec4053d 100644 --- src/hg/hgTracks/hicTrack.c +++ src/hg/hgTracks/hicTrack.c @@ -218,43 +218,45 @@ { struct rgbColor rgbLow; char *lowColorText = hicUiFetchBgColor(cart, tg->tdb); // This is an HTML color like #ffed02 unsigned lowRgbVal = 0; if (!htmlColorForCode(lowColorText, &lowRgbVal)) { warn("Bad RGB background color value %s for track %s", lowColorText, tg->track); return NULL; } int r, g, b; htmlColorToRGB(lowRgbVal, &r, &g, &b); rgbLow.r=(unsigned char)r; rgbLow.g=(unsigned char)g; rgbLow.b=(unsigned char)b; +rgbLow.a = 255; struct rgbColor rgbHigh; char *highColorText = hicUiFetchDrawColor(cart, tg->tdb); // This is an HTML color like #ffed02 unsigned highRgbVal = 0; if (!htmlColorForCode(highColorText, &highRgbVal)) { warn("Bad RGB color value %s for track %s", highColorText, tg->track); return NULL; } htmlColorToRGB(highRgbVal, &r, &g, &b); rgbHigh.r=(unsigned char)r; rgbHigh.g=(unsigned char)g; rgbHigh.b=(unsigned char)b; +rgbHigh.a = 255; Color *colorIxs = NULL; AllocArray(colorIxs, bucketCount); hvGfxMakeColorGradient(hvg, &rgbLow, &rgbHigh, bucketCount, colorIxs); return colorIxs; } double getHicMaxScore(struct track *tg) /* Return the score at which we should reach the maximum intensity color. */ { if (hicUiFetchAutoScale(cart, tg->tdb)) return tg->graphUpperLimit; else return hicUiFetchMaxValue(cart, tg->tdb); }