Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6434

Modified Files:
        FreqWindow.cpp FreqWindow.h 
Log Message:
Prevent plot window from flashing

Index: FreqWindow.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/FreqWindow.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- FreqWindow.h        23 May 2006 23:27:50 -0000      1.9
+++ FreqWindow.h        18 Feb 2009 06:37:46 -0000      1.10
@@ -44,6 +44,7 @@
 
    void OnMouseEvent(wxMouseEvent & event);
    void OnPaint(wxPaintEvent & event);
+   void OnErase(wxEraseEvent & event);
 
  private:
 

Index: FreqWindow.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/FreqWindow.cpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- FreqWindow.cpp      16 Feb 2009 22:35:44 -0000      1.60
+++ FreqWindow.cpp      18 Feb 2009 06:37:46 -0000      1.61
@@ -1114,8 +1114,9 @@
 
 
 BEGIN_EVENT_TABLE(FreqPlot, wxWindow)
-    EVT_PAINT(FreqPlot::OnPaint)
-    EVT_MOUSE_EVENTS(FreqPlot::OnMouseEvent)
+   EVT_ERASE_BACKGROUND(FreqPlot::OnErase)
+   EVT_PAINT(FreqPlot::OnPaint)
+   EVT_MOUSE_EVENTS(FreqPlot::OnMouseEvent)
 END_EVENT_TABLE()
 
 FreqPlot::FreqPlot(wxWindow * parent, wxWindowID id,
@@ -1125,6 +1126,11 @@
    freqWindow = (FreqWindow *) parent;
 }
 
+void FreqPlot::OnErase(wxEraseEvent &evt)
+{
+   // Ignore it to prevent flashing
+}
+
 void FreqPlot::OnPaint(wxPaintEvent & evt)
 {
    freqWindow->PlotPaint(evt);


------------------------------------------------------------------------------
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

Reply via email to