375009e404b0605f09edc9c92f25803c65acc38d galt Thu Dec 5 13:50:26 2013 -0800 fixing simple typos in comments diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index afe5823..e8e1e9c 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -739,31 +739,31 @@ { char link[512]; if (directUrl) { safef(link,sizeof(link),directUrl, item, chromName, start, end, encodedTrack, database); if (withHgsid) safef(link+strlen(link),sizeof(link)-strlen(link),"&%s", cartSidUrlString(cart)); } else { safef(link,sizeof(link),"%s&c=%s&o=%d&t=%d&g=%s&i=%s", hgcNameAndSettings(), chromName, start, end, encodedTrack, encodedItem); // NOTE: chopped out winStart/winEnd } if (extra != NULL) safef(link+strlen(link),sizeof(link)-strlen(link),"&%s", extra); - // Add map item to currnent map (TODO: pass in map) + // Add map item to current map (TODO: pass in map) #ifdef IMAGEv2_SHORT_MAPITEMS if (!revCmplDisp && x < insideX && xEnd > insideX) x = insideX; else if (revCmplDisp && x < insideWidth && xEnd > insideWidth) xEnd = insideWidth - 1; #endif//def IMAGEv2_SHORT_MAPITEMS imgTrackAddMapItem(curImgTrack,link,(char *)(statusLine!=NULL?statusLine:NULL), x, y, xEnd, yEnd, track); } else { hPrintf("<AREA SHAPE=RECT COORDS=\"%d,%d,%d,%d\" ", x, y, xEnd, yEnd); if (directUrl) { hPrintf("HREF=\""); @@ -1775,31 +1775,31 @@ /* Now sort it. */ if (next) slSort(&exonList, exonSlRefCmp); else slSort(&exonList, exonSlRefReverseCmp); numExons = slCount(exonList); for (ref = exonList; ref != NULL; ref = ref->next, exonIx++) { char mouseOverText[256]; boolean bigExon = FALSE; boolean revStrand = (lf->orientation == -1); exon = ref->val; if ((exon->end - exon->start) > (newWinSize - (2 * bufferToEdge))) bigExon = TRUE; if (next && (exon->end > winEnd)) - /* right overhang (but left side of screen in reserve-strand-display) */ + /* right overhang (but left side of screen in reverse-strand-display) */ { if (exon->start < winEnd) { /* not an intron hanging over edge. */ if ((lf->tallEnd > winEnd) && (lf->tallEnd < exon->end) && (lf->tallEnd > exon->start)) linkedFeaturesMoveWinEnd(lf->tallEnd, bufferToEdge, newWinSize, &newWinStart, &newWinEnd); else linkedFeaturesMoveWinEnd(exon->end, bufferToEdge, newWinSize, &newWinStart, &newWinEnd); } else if (bigExon) linkedFeaturesMoveWinStart(exon->start, bufferToEdge, newWinSize, &newWinStart, &newWinEnd); else linkedFeaturesMoveWinEnd(exon->end, bufferToEdge, newWinSize, &newWinStart, &newWinEnd); if (!revStrand) safef(mouseOverText, sizeof(mouseOverText), "%s (%d/%d)", nextExonText, exonIx+1, numExons); @@ -3338,31 +3338,31 @@ int w = x2-x1; if (w >= 0) { if (w == 0) w = 1; incRange(useCounts+x1, w); } } static void countLinkedFeaturesBaseUse(struct linkedFeatures *lf, int width, int baseWidth, UBYTE *useCounts, UBYTE *gapUseCounts, bool rc) /* increment base use counts for a set of linked features */ { /* Performence-sensitive code. Most of the overhead is in the mapping of base * to pixel. This was change from using roundingScale() to doing it all in - * floating point, with the divide take out of the loop. To avoid adding more + * floating point, with the divide taken out of the loop. To avoid adding more * overhead when rendering gaps, the translation to pixel coordinates is done * here, and then we save the previous block coordinates for use in marking * the gap. */ struct simpleFeature *sf; double scale = ((double)width)/((double)baseWidth); int x1 = -1, x2 = -1, prevX1 = -1, prevX2 = -1; /* pixel coords */ for (sf = lf->components; sf != NULL; sf = sf->next) { x1 = round(((double)(sf->start-winStart)) * scale); x2 = round(((double)(sf->end-winStart)) * scale); /* need to adjust x1/x2 before saving as prevX1/prevX2 */ if (x1 < 0) x1 = 0; if (x2 >= width) x2 = width-1;