Audacity's GetDefaultWindowRect neglects to consider the Mac's toolbar

1 message Options
Embed this post
Permalink
Ed Musgrove-2

Audacity's GetDefaultWindowRect neglects to consider the Mac's toolbar

Reply Threaded More More options
Print post
Permalink
Could someone compiling on the Mac please try  make this change in
d:\audio\Audacity\dont close\audacityDC4\src\Project.cpp at or near line
#525:

void GetDefaultWindowRect(wxRect *defRect)
{
   *defRect = wxGetClientDisplayRect();

   defRect->width = 600;
   defRect->height = 400;

   //These conditional values assist in improving placement and size
   //of new windows on different platforms.
#ifdef __WXGTK__
   defRect->height += 20;
#endif

#ifdef __WXMSW__
   defRect->height += 40;
#endif
// please add the following three lines:
#ifdef __WXMAC__
   defRect->height += 55;
#endif
}

Before making the above change, try this:
*either delete the Audacity preferences file (audacity.cf it removing all
but the first line.
*Start Audacity; after getting past the language selection and splash
screen, a new project should open
Is that project's window's title bar hidden behind the Mac's menubar?

If it is, make the above change in the source code, compile, again, just to
be sure, delete or edit the Audacity preferences file as above and start
Audacity again.
Now what happens with the new project's window's title bar, is a completely
visible?

--Ed





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel