bugfix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@552 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
076b7069ce
commit
9e49eda4f1
|
@ -74,6 +74,11 @@ CGameListCtrl::CGameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoin
|
||||||
InitBitmaps();
|
InitBitmaps();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGameListCtrl::~CGameListCtrl()
|
||||||
|
{
|
||||||
|
delete m_imageListSmall;
|
||||||
|
}
|
||||||
|
|
||||||
void CGameListCtrl::InitBitmaps()
|
void CGameListCtrl::InitBitmaps()
|
||||||
{
|
{
|
||||||
m_imageListSmall = new wxImageList(96, 32);
|
m_imageListSmall = new wxImageList(96, 32);
|
||||||
|
@ -301,7 +306,7 @@ wxColour blend50(const wxColour& c1, const wxColour& c2)
|
||||||
|
|
||||||
void CGameListCtrl::SetBackgroundColor()
|
void CGameListCtrl::SetBackgroundColor()
|
||||||
{
|
{
|
||||||
for(long i = 0; i <= GetItemCount(); i++)
|
for(long i = 0; i < GetItemCount(); i++)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
wxColour color = (i & 1) ? blend50(GetSysColor(COLOR_3DLIGHT), GetSysColor(COLOR_WINDOW)) : GetSysColor(COLOR_WINDOW);
|
wxColour color = (i & 1) ? blend50(GetSysColor(COLOR_3DLIGHT), GetSysColor(COLOR_WINDOW)) : GetSysColor(COLOR_WINDOW);
|
||||||
|
|
|
@ -29,6 +29,8 @@ class CGameListCtrl : public wxListCtrl
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CGameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
|
CGameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
|
||||||
|
~CGameListCtrl();
|
||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
void BrowseForDirectory();
|
void BrowseForDirectory();
|
||||||
const CISOFile *GetSelectedISO() const;
|
const CISOFile *GetSelectedISO() const;
|
||||||
|
|
Loading…
Reference in New Issue