Interface and general: Fixed the hangings and crashes that would occur from repeated Start and Stop, added optional toolbar themes, made the fullscreen mode in the OpenGL plugin more user friendly for Windows users

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1770 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson 2009-01-04 21:53:41 +00:00
parent 1ed27a4fc1
commit eb2ce16a6c
31 changed files with 11580 additions and 1104 deletions

View file

@ -111,7 +111,8 @@ ConfigBox::ConfigBox(wxWindow *parent, wxWindowID id, const wxString &title,
CreateGUIControls();
#if wxUSE_TIMER
m_timer.Start( floor((double)(1000 / 30)) );
int TimesPerSecond = 30;
m_timer.Start( floor((double)(1000 / TimesPerSecond)) );
#endif
wxTheApp->Connect(wxID_ANY, wxEVT_KEY_DOWN,
@ -122,7 +123,10 @@ ConfigBox::ConfigBox(wxWindow *parent, wxWindowID id, const wxString &title,
ConfigBox::~ConfigBox()
{
// empty
// The statbar sample has this so I add this to
#if wxUSE_TIMER
if (m_timer.IsRunning()) m_timer.Stop();
#endif
}
void ConfigBox::OnKeyDown(wxKeyEvent& event)
@ -339,7 +343,7 @@ void ConfigBox::CreateGUIControls()
#ifndef _WIN32
// Force a 8pt font so that it looks more or less "correct" regardless of the default font setting
wxFont f(8,wxFONTFAMILY_DEFAULT,wxFONTSTYLE_NORMAL,wxFONTWEIGHT_NORMAL);
wxFont f(8, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
SetFont(f);
#endif