mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
Some warning fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4345 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -534,7 +534,7 @@ void CFrame::OnRestart(wxCommandEvent& WXUNUSED (event))
|
||||
#ifdef _WIN32
|
||||
char Str[MAX_PATH + 1];
|
||||
DWORD Size = sizeof(Str)/sizeof(char);
|
||||
DWORD n = GetModuleFileNameA(NULL, Str, Size);
|
||||
//DWORD n = GetModuleFileNameA(NULL, Str, Size);
|
||||
ShellExecuteA(NULL, "open", PathToFilename(*new std::string(Str)).c_str(), g_pCodeWindow ? "" : "-d", NULL, SW_SHOW);
|
||||
#endif
|
||||
|
||||
|
@ -638,7 +638,7 @@ void CISOProperties::ExportDir(const char* _rFullPath, const char* _rExportFolde
|
||||
if (!_rFullPath) // Extract all
|
||||
{
|
||||
index[0] = 0;
|
||||
index[1] = fst.size();
|
||||
index[1] = (u32)fst.size();
|
||||
|
||||
FS->ExportApploader(_rExportFolder);
|
||||
}
|
||||
|
@ -283,10 +283,8 @@ void CLogWindow::UpdateChecks()
|
||||
|
||||
void CLogWindow::UnPopulateRight()
|
||||
{
|
||||
// Use ->Detach instead, as per sizer.h?
|
||||
sRight->Remove(m_Log);
|
||||
sRight->Remove(sRightBottom);
|
||||
// Remove() destroys sizers
|
||||
sRight->Detach(m_Log);
|
||||
sRight->Detach(sRightBottom);
|
||||
sRightBottom = new wxBoxSizer(wxHORIZONTAL);
|
||||
}
|
||||
void CLogWindow::PopulateRight()
|
||||
@ -445,10 +443,9 @@ void CLogWindow::OnLogTimer(wxTimerEvent& WXUNUSED(event))
|
||||
if (!m_LogAccess) return;
|
||||
|
||||
//m_Log->Freeze();
|
||||
int MsgSz = msgQueue.size();
|
||||
UpdateLog();
|
||||
// Better auto scroll than wxTE_AUTO_SCROLL
|
||||
if (MsgSz > 0)
|
||||
if (msgQueue.size() > 0)
|
||||
{
|
||||
m_Log->ScrollLines(1);
|
||||
m_Log->ShowPosition( m_Log->GetLastPosition() );
|
||||
|
Reference in New Issue
Block a user