b8180d9f6d41dc708a2f249ba892cbca311e7a06
jcasper
  Mon Feb 27 11:38:55 2023 -0800
Adding transparency support for colors refs #30569

diff --git src/hg/hgGenome/mainPage.c src/hg/hgGenome/mainPage.c
index 4f8b436..c714545 100644
--- src/hg/hgGenome/mainPage.c
+++ src/hg/hgGenome/mainPage.c
@@ -82,40 +82,40 @@
 
 void drawChromGraph(struct hvGfx *hvg, struct sqlConnection *conn, 
 	struct genoLay *gl, char *chromGraph, int yOff, int height, Color color,
 	boolean leftLabel, boolean rightLabel, boolean firstInRow)
 /* Draw chromosome graph on all chromosomes in layout at given
  * y offset and height. */
 {
 boolean yellowMissing = getYellowMissing();
 struct genoGraph *gg = hashFindVal(ggHash, chromGraph);
 if (gg != NULL)
     {
     /* Get binary data source and scaling info etc. */
     struct chromGraphBin *cgb = gg->cgb;
     struct chromGraphSettings *cgs = gg->settings;
     int maxGapToFill = cgs->maxGapToFill;
-    static struct rgbColor missingDataColor = { 180, 180, 120};
+    static struct rgbColor missingDataColor = { 180, 180, 120, 255};
     Color missingColor = hvGfxFindRgb(hvg, &missingDataColor);
     double pixelsPerBase = 1.0/gl->basesPerPixel;
     double gMin = cgs->minVal, gMax = cgs->maxVal, gScale;
     gScale = height/(gMax-gMin);
 
     /* Draw significance threshold as a light blue line */
     if (leftLabel)
         {
-	static struct rgbColor guidelineColor = { 220, 220, 255};
+	static struct rgbColor guidelineColor = { 220, 220, 255, 255};
 	Color lightBlue = hvGfxFindRgb(hvg, &guidelineColor);
 	struct slRef *ref;
 	struct genoLayChrom *chrom;
 	int rightX = gl->picWidth - gl->rightLabelWidth - gl->margin;
 	int leftX = gl->leftLabelWidth + gl->margin;
 	int width = rightX - leftX;
 	double threshold = getThreshold();
 	if (threshold >= gMin && threshold <= gMax)
 	    {
 	    int y = height - ((threshold - gMin)*gScale) + yOff;
 	    for (ref = gl->leftList; ref != NULL; ref = ref->next)
 		{
 		chrom = ref->val;
 		hvGfxBox(hvg, leftX, y + chrom->y, width, 1, lightBlue);
 		}