Use .cpp suffix when detecting libraries. On some systems, g++

is required to correctly link with C++ libraries like wxw.

Tell OS X that the user is doing something when using the wiimote
so that the screensaver doesn't come on when playing a Wii game.

Replace unnecessary floating point with integer math.

Remove unnecessary <sys/stat.h>'s.

Correct a few type nits.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5995 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-07-29 13:29:15 +00:00
parent 9ff5e836eb
commit 24fdf942a4
14 changed files with 20 additions and 23 deletions
+2 -2
View File
@@ -372,8 +372,8 @@ CFrame::CFrame(wxFrame* parent,
// Create timer
#if wxUSE_TIMER
int TimesPerSecond = 10; // We don't need more than this
m_timer.Start( floor((double)(1000 / TimesPerSecond)) );
const int TimesPerSecond = 10; // We don't need more than this
m_timer.Start(1000 / TimesPerSecond);
#endif
// Create toolbar bitmaps
+3 -3
View File
@@ -1278,10 +1278,10 @@ void CGameListCtrl::AutomaticColumnWidth()
+ 5); // some pad to keep the horizontal scrollbar away :)
// We hide the Company column if the window is too small
if (0.5*resizable > 200)
if (resizable / 2 > 200)
{
SetColumnWidth(COLUMN_TITLE, 0.5*resizable);
SetColumnWidth(COLUMN_NOTES, 0.5*resizable);
SetColumnWidth(COLUMN_TITLE, resizable / 2);
SetColumnWidth(COLUMN_NOTES, resizable / 2);
}
else
{
+2 -2
View File
@@ -123,8 +123,8 @@ void HotkeyConfigDialog::SetButtonText(int id, const wxString &keystr, const wxS
void HotkeyConfigDialog::DoGetButtons(int _GetId)
{
// Values used in this function
int Seconds = 4; // Seconds to wait for
int TimesPerSecond = 40; // How often to run the check
const int Seconds = 4; // Seconds to wait for
const int TimesPerSecond = 40; // How often to run the check
// If the Id has changed or the timer is not running we should start one
if( GetButtonWaitingID != _GetId || !m_ButtonMappingTimer->IsRunning() )