summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-10-25 21:44:56 -0400
committerLioncash <mathew1800@gmail.com>2014-10-25 21:44:56 -0400
commitadf6ce076c15ea56eda60f79bfb23a5214ec78dd (patch)
tree0d83742ffc166bfbd56023d8a9690c7382c053ab /Source/Core
parent5f21683343b2d36274f9d5c590944622bf2955b8 (diff)
CheatSearchTab: Make cheat list display in monospace font
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Cheats/CheatSearchTab.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Cheats/CheatSearchTab.cpp b/Source/Core/DolphinWX/Cheats/CheatSearchTab.cpp
index 9897b6b5b2..2e78799195 100644
--- a/Source/Core/DolphinWX/Cheats/CheatSearchTab.cpp
+++ b/Source/Core/DolphinWX/Cheats/CheatSearchTab.cpp
@@ -45,8 +45,13 @@ CheatSearchTab::CheatSearchTab(wxWindow* const parent)
std::array<wxString, 3> data_size_names = {{ _("8-bit"), _("16-bit"), _("32-bit") }};
m_data_sizes = new wxRadioBox(this, wxID_ANY, _("Data Size"), wxDefaultPosition, wxDefaultSize, static_cast<int>(data_size_names.size()), data_size_names.data());
- // result controls
+ // Listbox for search results (shown in monospace font).
m_lbox_search_results = new wxListBox(this, -1);
+ wxFont list_font = m_lbox_search_results->GetFont();
+ list_font.SetFamily(wxFONTFAMILY_TELETYPE);
+ m_lbox_search_results->SetFont(list_font);
+
+ // Result count
m_label_results_count = new wxStaticText(this, -1, _("Count:"));
// create AR code button
@@ -286,7 +291,7 @@ void CheatSearchTab::UpdateCheatSearchResultsList()
// #elseif BIG_ENDIAN
// need to do some stuff in here (for 8 and 16bit) for bigendian
// #endif
- std::string rowfmt = StringFromFormat("0x%%08x 0x%%0%ux %%u/%%i", m_search_type_size*2);
+ std::string rowfmt = StringFromFormat("0x%%08X 0x%%0%uX %%u/%%i", m_search_type_size*2);
m_lbox_search_results->Append(
wxString::Format(rowfmt.c_str(), result.address, display_value, display_value, display_value));