17873dd02539ec8e6be6047fd12c90b008167cbb tdreszer Tue Oct 26 09:30:49 2010 -0700 Reusable blueLines bg image must distinguish reverse complement, and insideX doesn't do that for some strange reason. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index bee35ec..af42966 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -2329,31 +2329,31 @@ } else { leftLabelX = leftLabelWidth = 0; } /* Draw guidelines. */ if (withGuidelines) { struct hvGfx *bgImg = hvg; // Default to the one image boolean exists = FALSE; if(theImgBox) { struct tempName gifBg; char base[64]; - safef(base,sizeof(base),"blueLines%d-%d-%d",pixWidth,insideX,guidelineSpacing); // reusable file needs width, leftLabel start and guidelines + safef(base,sizeof(base),"blueLines%d-%s%d-%d",pixWidth,(revCmplDisp?"r":""),insideX,guidelineSpacing); // reusable file needs width, leftLabel start and guidelines #ifdef USE_PNG exists = trashDirReusableFile(&gifBg, "hgt", base, ".png"); #else///ifndef exists = trashDirReusableFile(&gifBg, "hgt", base, ".gif"); #endif///ndef USE_PNG if (exists && cgiVarExists("hgt.reset")) // exists means don't remake bg image. exists = TRUE; // However, for the time being, rebuild when user presses "default tracks" if (!exists) { #ifdef USE_PNG bgImg = hvGfxOpenPng(pixWidth, pixHeight, gifBg.forCgi, TRUE); #else///ifndef bgImg = hvGfxOpenGif(pixWidth, pixHeight, gifBg.forCgi, TRUE); #endif///ndef USE_PNG