3fc4985e0565e8d601746484ed273cf353467a60
tdreszer
  Wed Jul 28 13:59:53 2010 -0700
Finally got dragReorder row highlighting working
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 34a1601..99fd64c 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -2087,16 +2087,18 @@
     }
 else
     {
+    boolean transparentImage = FALSE;
+    #ifdef IMAGEv2_BG_IMAGE
+    if (theImgBox!=NULL)
+        transparentImage = TRUE;   // transparent when BG is defined
+    #endif///def IMAGEv2_BG_IMAGE
+
 #ifdef USE_PNG
     trashDirFile(&gifTn, "hgt", "hgt", ".png");
-    #ifdef IMAGEv2_BG_IMAGE
-    hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, (theImgBox!=NULL?TRUE:FALSE));  // transparent when BG is defined
-    #else//ifndef IMAGEv2_BG_IMAGE
-    hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, FALSE);
-    #endif//ndef IMAGEv2_BG_IMAGE
+    hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, transparentImage);
 #else //ifndef
     trashDirFile(&gifTn, "hgt", "hgt", ".gif");
-    hvg = hvGfxOpenGif(pixWidth, pixHeight, gifTn.forCgi, FALSE);
+    hvg = hvGfxOpenGif(pixWidth, pixHeight, gifTn.forCgi, transparentImage);
 #endif //ndef USE_PNG
 
     if(theImgBox)
@@ -2113,10 +2115,10 @@
         struct tempName gifTnSide;
         #ifdef USE_PNG
             trashDirFile(&gifTnSide, "hgt", "side", ".png");
-            hvgSide = hvGfxOpenPng(pixWidth, pixHeight, gifTnSide.forCgi, FALSE);
+            hvgSide = hvGfxOpenPng(pixWidth, pixHeight, gifTnSide.forCgi, transparentImage);
         #else //ifndef
             trashDirFile(&gifTnSide, "hgt", "side", ".gif");
-            hvgSide = hvGfxOpenGif(pixWidth, pixHeight, gifTnSide.forCgi, FALSE);
+            hvgSide = hvGfxOpenGif(pixWidth, pixHeight, gifTnSide.forCgi, transparentImage);
         #endif //ndef USE_PNG
 
         // Also add the side image
@@ -2384,7 +2386,7 @@
         {
         struct tempName gifBg;
         trashDirFile(&gifBg, "hgt", "bg", ".png");  // TODO: We could have a few static files by (pixHeight*pixWidth)  And I doubt pixHeight is needed!
-        bgImg = hvGfxOpenPng(pixWidth, pixHeight, gifBg.forCgi, FALSE);
+        bgImg = hvGfxOpenPng(pixWidth, pixHeight, gifBg.forCgi, TRUE);
         imgBoxImageAdd(theImgBox,gifBg.forHtml,NULL,pixWidth, pixHeight,TRUE); // Adds BG image
         }
     #endif //defined(IMAGEv2_BG_IMAGE) && defined(USE_PNG)
@@ -4656,9 +4658,9 @@
 	hPrintf(" size <span id='size'>%s</span> bp. ", buf);
 	hWrites(" ");
 	hButton("hgTracksConfigPage", "configure");
-        //hPrintf("&nbsp;&nbsp;<FONT SIZE=3><A STYLE=\"text-decoration:none; padding:2px; background-color:yellow; border:solid 1px\" HREF=\"http://www.surveymonkey.com/s.asp?u=881163743177\" TARGET=_BLANK><EM><B>Your feedback</EM></B></A></FONT>\n");
+        //hPrintf("&nbsp;&nbsp;<FONT SIZE=3><A STYLE=\"text-decoration:none; padding:2px; background-color:yellow; border:solid 1px\" HREF=\"http://www.surveymonkey.com/s.asp?u=881163743177\" TARGET=_BLANK><EM><B>Your feedback</B></EM></A></FONT>\n");
 	if (survey && differentWord(survey, "off"))
-	    hPrintf("&nbsp;&nbsp;<FONT SIZE=3><A STYLE=\"background-color:yellow;\" HREF=\"%s\" TARGET=_BLANK><EM><B>%s</EM></B></A></FONT>\n", survey, surveyLabel ? surveyLabel : "Take survey");
+	    hPrintf("&nbsp;&nbsp;<FONT SIZE=3><A STYLE=\"background-color:yellow;\" HREF=\"%s\" TARGET=_BLANK><EM><B>%s</B></EM></A></FONT>\n", survey, surveyLabel ? surveyLabel : "Take survey");
 	// info for drag selection javascript
 	hPrintf("<input type='hidden' id='hgt.winStart' name='winStart' value='%d'>\n", winStart);
 	hPrintf("<input type='hidden' id='hgt.winEnd' name='winEnd' value='%d'>\n", winEnd);