mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
InfoWindow now shows text on linux again, can't explain why it wasnt working before, damn wx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3077 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
375e1227d9
commit
9849717d3a
@ -89,19 +89,20 @@ std::string Summarize_Settings()
|
|||||||
|
|
||||||
void wxInfoWindow::Init_ChildControls()
|
void wxInfoWindow::Init_ChildControls()
|
||||||
{
|
{
|
||||||
wxString Info;
|
std::string Info;
|
||||||
Info.Printf(wxT("Dolphin Revision: " SVN_REV_STR));
|
Info = StringFromFormat("Dolphin Revision: %s", SVN_REV_STR);
|
||||||
|
|
||||||
char ** drives = cdio_get_devices();
|
char ** drives = cdio_get_devices();
|
||||||
for (int i = 0; drives[i] != NULL && i < 24; i++)
|
for (int i = 0; drives[i] != NULL && i < 24; i++)
|
||||||
{
|
{
|
||||||
Info.Append(wxString::Format(wxT("\nCD/DVD Drive%d: %s"), i+1, drives[i]));
|
|
||||||
|
Info.append(StringFromFormat("\nCD/DVD Drive%d: %s", i+1, drives[i]));
|
||||||
}
|
}
|
||||||
Info.Append(wxString::Format(wxT("Plugin Information\n\n%s\n%s\nProcessor Information:%s\n"),
|
Info.append(StringFromFormat("\nPlugin Information\n\n%s\n%s\nProcessor Information:%s\n",
|
||||||
Summarize_Plug().c_str(), Summarize_Settings().c_str(), cpu_info.Summarize().c_str()));
|
Summarize_Plug().c_str(), Summarize_Settings().c_str(), cpu_info.Summarize().c_str()));
|
||||||
|
|
||||||
|
|
||||||
|
PanicAlert("%s", Info.c_str());
|
||||||
|
|
||||||
// Main Notebook
|
// Main Notebook
|
||||||
m_Notebook_Main = new wxNotebook(this, ID_NOTEBOOK_MAIN, wxDefaultPosition, wxDefaultSize);
|
m_Notebook_Main = new wxNotebook(this, ID_NOTEBOOK_MAIN, wxDefaultPosition, wxDefaultSize);
|
||||||
@ -109,7 +110,7 @@ void wxInfoWindow::Init_ChildControls()
|
|||||||
|
|
||||||
// $ Log Tab
|
// $ Log Tab
|
||||||
m_Tab_Log = new wxPanel(m_Notebook_Main, ID_TAB_LOG, wxDefaultPosition, wxDefaultSize);
|
m_Tab_Log = new wxPanel(m_Notebook_Main, ID_TAB_LOG, wxDefaultPosition, wxDefaultSize);
|
||||||
m_TextCtrl_Log = new wxTextCtrl(m_Tab_Log, ID_TEXTCTRL_LOG, Info, wxDefaultPosition, wxSize(100, 600),
|
m_TextCtrl_Log = new wxTextCtrl(m_Tab_Log, ID_TEXTCTRL_LOG, wxString::FromAscii(Info.c_str()), wxDefaultPosition, wxSize(100, 600),
|
||||||
wxTE_MULTILINE | wxTE_READONLY | wxTE_DONTWRAP);
|
wxTE_MULTILINE | wxTE_READONLY | wxTE_DONTWRAP);
|
||||||
|
|
||||||
wxBoxSizer *HStrip1 = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer *HStrip1 = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user