From 827ce8dde2f4154d97dc6b561bd978355922ad5e Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Thu, 24 Jul 2008 09:58:04 +0000 Subject: [PATCH] Linux: Fixed GUI bugs that only showed up in Linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@80 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/src/GameListCtrl.cpp | 6 +++--- Source/Core/DolphinWX/src/PluginManager.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/DolphinWX/src/GameListCtrl.cpp b/Source/Core/DolphinWX/src/GameListCtrl.cpp index 8aad0d7b4b..6e310ebd83 100644 --- a/Source/Core/DolphinWX/src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/src/GameListCtrl.cpp @@ -286,9 +286,9 @@ CGameListCtrl::ScanForISOs() SplitPath(rFilenames[i], NULL, &FileName, NULL); wxString msg; - wxString tempstring; - tempstring = wxString::FromAscii("Scanning %s"); - msg.Printf(tempstring, FileName.c_str()); + char tempstring[128]; + sprintf(tempstring,"Scanning %s", FileName.c_str()); + msg = wxString::FromAscii(tempstring); bool Cont = dialog.Update(i, msg); diff --git a/Source/Core/DolphinWX/src/PluginManager.cpp b/Source/Core/DolphinWX/src/PluginManager.cpp index bd9f7cd6e1..4bb7fc1f5a 100644 --- a/Source/Core/DolphinWX/src/PluginManager.cpp +++ b/Source/Core/DolphinWX/src/PluginManager.cpp @@ -84,9 +84,9 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow) } wxString msg; - wxString temp; - temp = wxString::FromAscii("Scanning %s"); - msg.Printf(temp, FileName.c_str()); + char temp[128]; + sprintf(temp,"Scanning %s", FileName.c_str()); + msg = wxString::FromAscii(temp); bool Cont = dialog.Update((int)i, msg); if (!Cont)