mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Deal with some clang-inspired buglets.
Respect the initial fullscreen setting in nowx. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7089 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -97,10 +97,6 @@ BEGIN_EVENT_TABLE(CMemcardManager, wxDialog)
|
||||
EVT_MENU_RANGE(COLUMN_BANNER, NUMBER_OF_COLUMN, CMemcardManager::OnMenuChange)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
BEGIN_EVENT_TABLE(CMemcardManager::CMemcardListCtrl, wxListCtrl)
|
||||
EVT_RIGHT_DOWN(CMemcardManager::CMemcardListCtrl::OnRightClick)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
CMemcardManager::CMemcardManager(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
|
||||
: wxDialog(parent, id, title, position, size, style)
|
||||
{
|
||||
@ -111,7 +107,7 @@ CMemcardManager::CMemcardManager(wxWindow* parent, wxWindowID id, const wxString
|
||||
{
|
||||
itemsPerPage = 16;
|
||||
mcmSettings.usePages = true;
|
||||
for (int i = 0; i < NUMBER_OF_COLUMN; i++)
|
||||
for (int i = COLUMN_BANNER; i < NUMBER_OF_COLUMN; i++)
|
||||
{
|
||||
mcmSettings.column[i] = (i <= COLUMN_FIRSTBLOCK)? true:false;
|
||||
}
|
||||
@ -191,7 +187,7 @@ void CMemcardManager::CreateGUIControls()
|
||||
|
||||
m_ConvertToGci = new wxButton(this, ID_CONVERTTOGCI, _("Convert to GCI"));
|
||||
|
||||
for (int slot = SLOT_A; slot < SLOT_B + 1; slot++)
|
||||
for (int slot = SLOT_A; slot <= SLOT_B; slot++)
|
||||
{
|
||||
m_CopyFrom[slot] = new wxButton(this, ID_COPYFROM_A + slot,
|
||||
wxString::Format(_("%1$sCopy%1$s"), ARROW[slot ? 0 : 1]));
|
||||
@ -256,7 +252,7 @@ void CMemcardManager::CreateGUIControls()
|
||||
Fit();
|
||||
Center();
|
||||
|
||||
for (int i = SLOT_A; i < SLOT_B + 1; i++)
|
||||
for (int i = SLOT_A; i <= SLOT_B; i++)
|
||||
{
|
||||
m_PrevPage[i]->Disable();
|
||||
m_NextPage[i]->Disable();
|
||||
@ -274,7 +270,7 @@ void CMemcardManager::CreateGUIControls()
|
||||
|
||||
void CMemcardManager::OnClose(wxCloseEvent& WXUNUSED (event))
|
||||
{
|
||||
Close();
|
||||
EndModal(wxID_OK);
|
||||
}
|
||||
|
||||
void CMemcardManager::OnPathChange(wxFileDirPickerEvent& event)
|
||||
@ -758,7 +754,7 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
|
||||
delete[] images;
|
||||
// Automatic column width and then show the list
|
||||
for (int i = 0; i < NUMBER_OF_COLUMN; i++)
|
||||
for (int i = COLUMN_BANNER; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
{
|
||||
if (mcmSettings.column[i])
|
||||
m_MemcardList[card]->SetColumnWidth(i, wxLIST_AUTOSIZE);
|
||||
@ -767,7 +763,7 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
}
|
||||
|
||||
m_MemcardList[card]->Show();
|
||||
wxLabel.Printf(_("%d Free Blocks; %d Free Dir Entries"),
|
||||
wxLabel.Printf(_("%u Free Blocks; %u Free Dir Entries"),
|
||||
memoryCard[card]->GetFreeBlocks(), DIRLEN - nFiles);
|
||||
t_Status[card]->SetLabel(wxLabel);
|
||||
|
||||
@ -812,13 +808,15 @@ void CMemcardManager::CMemcardListCtrl::OnRightClick(wxMouseEvent& event)
|
||||
|
||||
popupMenu->AppendSeparator();
|
||||
|
||||
popupMenu->AppendCheckItem(COLUMN_BANNER, _("Show save banner"));
|
||||
// popupMenu->AppendCheckItem(COLUMN_BANNER, _("Show save banner"));
|
||||
popupMenu->AppendCheckItem(COLUMN_TITLE, _("Show save title"));
|
||||
popupMenu->AppendCheckItem(COLUMN_COMMENT, _("Show save comment"));
|
||||
popupMenu->AppendCheckItem(COLUMN_ICON, _("Show save icon"));
|
||||
popupMenu->AppendCheckItem(COLUMN_BLOCKS, _("Show save blocks"));
|
||||
popupMenu->AppendCheckItem(COLUMN_FIRSTBLOCK, _("Show first block"));
|
||||
|
||||
for (int i = COLUMN_BANNER; i <= COLUMN_BLOCKS; i++)
|
||||
// for (int i = COLUMN_BANNER; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
for (int i = COLUMN_TITLE; i <= COLUMN_FIRSTBLOCK; i++)
|
||||
{
|
||||
popupMenu->FindItem(i)->Check(__mcmSettings.column[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user