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
This commit is contained in:
Shawn Hoffman 2009-03-20 23:23:47 +00:00
parent 99c7c11f35
commit 7df9aaa3e3
2 changed files with 0 additions and 31 deletions

View File

@ -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)
{

View File

@ -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();