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

Modified Files:
        TrackPanel.cpp 
Log Message:
If the vruler display was damaged during recording (like if you opened a menu 
and it overlayed the vruler), then the vruler wouldn't get refreshed until the 
next full track panel refresh.  This was because during recording only the part 
of the display to the right of the vruler was refreshed with the intent of 
saving redraw time.  However, since we redraw the whole thing anyway, we might 
as well refresh the whole thing.  Timing differences were negligible.

Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.459
retrieving revision 1.460
diff -u -d -r1.459 -r1.460
--- TrackPanel.cpp      7 Jun 2009 09:53:55 -0000       1.459
+++ TrackPanel.cpp      10 Jun 2009 04:34:38 -0000      1.460
@@ -157,9 +157,7 @@
 
 #include <math.h>
 
-#if DEBUG_DRAW_TIMING
-#include <sys/time.h>
-#endif
+//#define DEBUG_DRAW_TIMING 1
 
 #include <wx/combobox.h>
 #include <wx/dcclient.h>
@@ -872,15 +870,7 @@
             // Must tell OnPaint() to recreate the backing bitmap
             // since we've not done a full refresh.
             mRefreshBacking = true;
-
-            // Refresh only the waveform area, not the labels
-            // (This actually speeds up redrawing!)
-            wxRect trackRect;
-            GetSize(&trackRect.width, &trackRect.height);
-            trackRect.x = GetLeftOffset(); 
-            trackRect.y = 0;
-            trackRect.width -= GetLeftOffset();
-            Refresh(false, &trackRect);
+            Refresh( false );
          }
       }
    }


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to