4a234f089be336a40604bf7002b3811dc3dad308 kent Mon Aug 9 14:58:47 2010 -0700 Adding a trackHash parameter to a bunch of metadata routines so that they could find the track associated with a table. Fixing clipping bug in hgTracks.c for multiWig labels when in non-overlay mode due to a special case that seems to be obsolete (did fair bit of testing to make sure it's not used.) diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 2eb1239..dd899fa 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -1440,31 +1440,14 @@ MgFont *font, int y) /* Track draws it own, custom left labels */ { -int pixWidth = tl.picWidth; int fontHeight = mgFontLineHeight(font); int tHeight = trackPlusLabelHeight(track, fontHeight); Color labelColor = (track->labelColor ? track->labelColor : track->ixColor); -if (track->limitedVis == tvPack) - { /*XXX This needs to be looked at, no example yet*/ - hvGfxSetClip(hvg, gfxBorder+trackTabWidth+1, y, - pixWidth-2*gfxBorder-trackTabWidth-1, track->height); - track->drawLeftLabels(track, winStart, winEnd, - hvg, leftLabelX, y, leftLabelWidth, tHeight, - isWithCenterLabels(track), font, labelColor, - track->limitedVis); - } -else - { hvGfxSetClip(hvg, leftLabelX, y, leftLabelWidth, tHeight); - - /* when the limitedVis == tvPack is correct above, - * this should be outside this else clause - */ track->drawLeftLabels(track, winStart, winEnd, hvg, leftLabelX, y, leftLabelWidth, tHeight, isWithCenterLabels(track), font, labelColor, track->limitedVis); - } hvGfxUnclip(hvg); y += tHeight; return y;