e2a311d22dde92bf596840815a81d01fd3cff9ae fanhsu Fri Jun 3 16:01:05 2011 -0700 Use entry color instead of MG_BLACK for bedPlusLabelDrawAt(). diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index cf37087..43adb85 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -3980,31 +3980,31 @@ int x2 = round((double)((int)bed->chromEnd-winStart)*scale) + xOff; int w; if (tg->itemColor != NULL) color = tg->itemColor(tg, bed, hvg); w = x2-x1; if (w < 1) w = 1; hvGfxBox(hvg, x1, y, w, heightPer, color); // In full mode, draw bpl->label to the left of item: if (vis == tvFull) { int textWidth = mgFontStringWidth(font, bpl->label); - hvGfxTextRight(hvg, x1-textWidth-2, y, textWidth, heightPer, MG_BLACK, font, bpl->label); + hvGfxTextRight(hvg, x1-textWidth-2, y, textWidth, heightPer, color, font, bpl->label); } } static void bedPlusLabelMapItem(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height) /* Special mouseover text from item->label. (derived from genericMapItem) */ { // Don't bother if we are imageV2 and a dense child. if(!theImgBox || tg->limitedVis != tvDense || !tdbIsCompositeChild(tg->tdb)) { struct bedPlusLabel *bpl = item;; char *mouseOverText = isEmpty(bpl->label) ? bpl->bed.name : bpl->label; mapBoxHc(hvg, start, end, x, y, width, height, tg->track, mapItemName, mouseOverText); }