33f285063b852a8a7b9d44e36585fb77a852c677
hiram
  Fri May 20 13:35:16 2022 -0700
fix broken interpretation of the palette colors for drawing refs #29464

diff --git src/hg/hgTracks/bigRmskTrack.c src/hg/hgTracks/bigRmskTrack.c
index 24817a9..caf0ac1 100644
--- src/hg/hgTracks/bigRmskTrack.c
+++ src/hg/hgTracks/bigRmskTrack.c
@@ -552,31 +552,33 @@
  * Therefore, while this is a "loading" function it also needs to perform enough
  * of the layout to determine how many "items" to generate.  
  */
 {
 int i;
 if ( classHashBR == NULL )
     {
     struct classRecord *cr;
     int numClasses = ArraySize(rptClasses);
     classHashBR = newHash(6);
     for (i = 0; i < numClasses; ++i)
         {
         AllocVar(cr);
         cr->className = rptClassNames[i];
         cr->layoutLevel = i;
-        cr->color = rmskJoinedClassColors[i];
+        unsigned int colorInt = rmskJoinedClassColors[i];
+        cr->color = MAKECOLOR_32(((colorInt >> 16) & 0xff),((colorInt >> 8)
+& 0xff),((colorInt >> 0) & 0xff));
         hashAdd(classHashBR, rptClasses[i], cr);
         }
     }
 
 struct bigRmskRecord *detailList = NULL;
 if (tg->isBigBed)
     {
     struct bbiFile *bbi = fetchBbiForTrack(tg);
     if (bbi->fieldCount < 14)
         errAbort("track %s has a bigBed being read as a bed14 that has %d columns.", tg->track, bbi->fieldCount);
     struct lm *lm = lmInit(0);
     struct bigBedInterval *bb, *bbList =  bigBedIntervalQuery(bbi, chromName, winStart, winEnd, 0, lm);
     char *bedRow[bbi->fieldCount];
     /* One might ask, "Why didn't you use a linkedFeature set here?" Good question!  I am not using
        a standard encoding of blockStarts as would be expected by a BED12 validator, and therefore