Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv12691
Modified Files:
FreqWindow.cpp
Log Message:
Using the new grid from Ruler. Needs a tweak to make it use the current ruler
on resizing.
Index: FreqWindow.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/FreqWindow.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- FreqWindow.cpp 10 Feb 2009 23:33:29 -0000 1.59
+++ FreqWindow.cpp 16 Feb 2009 22:35:44 -0000 1.60
@@ -279,6 +279,7 @@
vRuler->ruler.SetFormat(Ruler::LinearDBFormat);
vRuler->ruler.SetUnits(_("dB"));
vRuler->ruler.SetLabelEdges(true);
+
int w, h;
vRuler->ruler.GetMaxSize(&w, NULL);
vRuler->SetSize(wxSize(w, 150)); // height needed for wxGTK
@@ -499,10 +500,12 @@
memDC.SetBrush(*wxTRANSPARENT_BRUSH);
memDC.DrawRectangle(r);
+ hRuler->ruler.DrawGrid(memDC, r.height);
+ vRuler->ruler.DrawGrid(memDC, r.width);
+
memDC.SelectObject( wxNullBitmap );
mBitmap->SetMask( new wxMask( *mBitmap, wxColour(254, 254, 254) ) );
-
}
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs