summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-03-20 23:23:47 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-03-20 23:23:47 +0000
commit7df9aaa3e368af3561fc8b8f37c59704f17dfded (patch)
treebc0b5e457c686571545c9026165791e589506af0 /Source
parent99c7c11f35eba7bb500015520e108b539bd9662c (diff)
show flags in the GameListCtrl on windows again. (what do you know, updating wxw had some benefit)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2708 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/GameListCtrl.cpp27
-rw-r--r--Source/Core/DolphinWX/Src/GameListCtrl.h4
2 files changed, 0 insertions, 31 deletions
diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
index 37929c4e8d..53f5681813 100644
--- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
@@ -343,14 +343,11 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
SetItem(item);
}
-#ifndef __WXMSW__
// Country
{
- // Can't do this in Windows - we use DrawSubItem instead, see below
wxListItem item;
item.m_itemId = ItemIndex;
item.SetColumn(COLUMN_COUNTRY);
- //item.SetBackgroundColour(color);
DiscIO::IVolume::ECountry Country = rISOFile.GetCountry();
if (size_t(Country) < m_FlagImageIndex.size())
@@ -360,34 +357,10 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
SetItem(item);
}
-#endif // __WXMSW__
// Item data
SetItemData(_Index, ItemIndex);
}
-#ifdef _WIN32
-bool CGameListCtrl::MSWDrawSubItem(wxPaintDC& rPaintDC, int item, int subitem)
-{
- bool Result = false;
-#ifdef __WXMSW__
- switch (subitem)
- {
- case COLUMN_COUNTRY:
- size_t Index = GetItemData(item);
-
- if (Index < m_ISOFiles.size())
- {
- const GameListItem& rISO = m_ISOFiles[Index];
- wxRect SubItemRect;
- this->GetSubItemRect(item, subitem, SubItemRect);
- m_imageListSmall->Draw(m_FlagImageIndex[rISO.GetCountry()], rPaintDC, SubItemRect.GetLeft(), SubItemRect.GetTop());
- }
- }
-#endif
-
- return(Result);
-}
-#endif
wxColour blend50(const wxColour& c1, const wxColour& c2)
{
diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.h b/Source/Core/DolphinWX/Src/GameListCtrl.h
index abcefbd771..fd1bff65c1 100644
--- a/Source/Core/DolphinWX/Src/GameListCtrl.h
+++ b/Source/Core/DolphinWX/Src/GameListCtrl.h
@@ -76,10 +76,6 @@ private:
void OnMultiCompressGCM(wxCommandEvent& event);
void OnMultiDecompressGCM(wxCommandEvent& event);
- #ifdef _WIN32
- virtual bool MSWDrawSubItem(wxPaintDC& rPaintDC, int item, int subitem);
- #endif
-
void CompressSelection(bool _compress);
void AutomaticColumnWidth();
void UnselectAll();