Update of /cvsroot/audacity/audacity-src/src/effects In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15643/src/effects
Modified Files: Equalization.cpp Log Message: When laying out the sliders in graphical view, the rightmost sliders will fall off the edge of the window since there's 2 pixels per slider that aren't being accounted for. I was unable to locate where the missing pixels are, so I just put in a hack to workaround it. This only happens on the Mac. (Well, I didn't check Linux, but it doesn't happen on Windows.) Index: Equalization.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/effects/Equalization.cpp,v retrieving revision 1.110 retrieving revision 1.111 diff -u -d -r1.110 -r1.111 --- Equalization.cpp 30 Dec 2009 01:48:43 -0000 1.110 +++ Equalization.cpp 4 Jan 2010 17:05:24 -0000 1.111 @@ -2118,6 +2118,15 @@ wxSize rulerSize = ruler->GetSize(); //and the ruler wxSizerItem *EQslider = szrG->GetItem((size_t)1); wxSize EQsliderSize = EQslider->GetSize(); //size of the sliders + +#if defined(__WXMAC__) + // LL: 2010-01-04 - Don't know why, but on the Mac, the rightmost sliders + // will wind up off the edge of the window since they get spaced out too + // much. Somewhere, there's an extra 2 pixels in slider width that's not + // being accounted for. (I guess) + EQsliderSize.x += 2; +#endif + int start, w, range, so_far; start = szr2Size.x + rulerSize.x + 12; //inc ruler & mPanel border (4+4 + 4) szrG->SetItemMinSize((size_t)0, start - EQsliderSize.x/2, -1); //set 1st spacer so that 1st slider aligned with ruler @@ -2137,6 +2146,7 @@ szrG->SetItemMinSize((size_t)(i*2), w, -1); //set spacers so that sliders aligned with ruler so_far += (w + EQsliderSize.x); } + RefreshRect(wxRect(szrG->GetPosition(),szrGSize)); } ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs