e7b2da51ba638fe7f6f4379c6c9470321ac0a88e tdreszer Thu Dec 22 11:20:00 2011 -0800 Removed old ifdefs. No functional change here. diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 8505a07..daa7ae7 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -1223,35 +1223,31 @@ imgBox->showPortal = FALSE; //int oneThird = (chromEnd - chromStart)/3; // TODO: Currently defaulting to 1/3 of image width imgBox->portalStart = chromStart;// + oneThird; imgBox->portalEnd = chromEnd;// - oneThird; imgBox->portalWidth = chromEnd - chromStart; imgBox->basesPerPixel = ((double)imgBox->chromEnd - imgBox->chromStart)/(imgBox->width - imgBox->sideLabelWidth); return imgBox; } boolean imgBoxPortalDefine(struct imgBox *imgBox,int *chromStart,int *chromEnd,int *imgWidth,double imageMultiple) /* Defines the portal of the imgBox. The portal is the initial viewable region when dragScroll is being used. the new chromStart,chromEnd and imgWidth are returned as OUTs, while the portal becomes the initial defined size returns TRUE if successfully defined as having a portal */ { if( (int)imageMultiple == 0) -#ifdef IMAGEv2_DRAG_SCROLL_SZ imageMultiple = IMAGEv2_DRAG_SCROLL_SZ; -#else//ifndef IMAGEv2_DRAG_SCROLL_SZ - imageMultiple = 1; -#endif//ndef IMAGEv2_DRAG_SCROLL_SZ imgBox->portalStart = imgBox->chromStart; imgBox->portalEnd = imgBox->chromEnd; imgBox->portalWidth = imgBox->width - imgBox->sideLabelWidth; imgBox->showPortal = FALSE; // Guilty until proven innocent int positionWidth = (int)((imgBox->portalEnd - imgBox->portalStart) * imageMultiple); *chromStart = imgBox->portalStart - (int)(((imageMultiple - 1)/2) * (imgBox->portalEnd - imgBox->portalStart)); if( *chromStart < 0) *chromStart = 0; *chromEnd = *chromStart + positionWidth; struct chromInfo *chrInfo = hGetChromInfo(imgBox->db,imgBox->chrom); if(chrInfo == NULL) { *chromStart = imgBox->chromStart; @@ -1744,34 +1740,32 @@ offsetY += centerSlice->height; } } // Adjustment for portal if(imgBox->showPortal && imgBox->basesPerPixel > 0 && (sliceType==stData || sliceType==stCenter)) { offsetX += (imgBox->portalStart - imgBox->chromStart) / imgBox->basesPerPixel; width=imgBox->portalWidth; } hPrintf("