~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/FreqWindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
   hRuler->SetMinSize(wxSize(-1, h));
292
292
   szr->Add( hRuler, 0, wxEXPAND|wxLEFT|wxRIGHT, 1 ); //for border around graph
293
293
   szr->Add(1,1); //spacer
294
 
   mInfoText = new wxStaticText(this, wxID_ANY, wxT(""));   //box for info text
 
294
   mInfoText = new wxStaticText(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE);   //box for info text
295
295
   szr->Add( mInfoText, 0, wxEXPAND|wxALL, 5);
296
296
 
297
297
   vs->Add(szr, 1, wxEXPAND|wxALL, 5);
354
354
 
355
355
void FreqWindow::DrawPlot()
356
356
{
 
357
   if (mUpdateRect.width == 0 || mUpdateRect.height == 0)
 
358
   {
 
359
      // Update rect not yet initialized properly
 
360
      // (can happen during initialization phase on wx2.8)
 
361
      return;
 
362
   }
 
363
 
357
364
   if (mBitmap)
358
365
   {
359
366
      delete mBitmap;
361
368
   }
362
369
 
363
370
   mBitmap = new wxBitmap(mUpdateRect.width, mUpdateRect.height);
364
 
 
 
371
   
365
372
   wxMemoryDC memDC;
366
373
   memDC.SelectObject(*mBitmap);
367
374
 
505
512
         mFreqPlot->SetCursor(*mArrowCursor);
506
513
 
507
514
      mFreqPlot->Refresh(false);
 
515
      mInfoText->Refresh();
508
516
   }
509
517
}
510
518