- 'Sending' some changes of my previous commit to Windows build only

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7473 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
gnick79 2011-04-18 17:35:03 +00:00
parent 24b0ef52a0
commit 35c9c60b38
1 changed files with 9 additions and 1 deletions

View File

@ -136,7 +136,12 @@ BEGIN_EVENT_TABLE(CGameListCtrl, wxListCtrl)
EVT_MENU(IDM_INSTALLWAD, CGameListCtrl::OnInstallWAD)
END_EVENT_TABLE()
int CGameListCtrl::MarginWidth(wxOwnerDrawn().GetMarginWidth());
#ifdef _WIN32
int CGameListCtrl::MarginWidth(wxOwnerDrawn().GetMarginWidth());
#else
int CGameListCtrl::MarginWidth(0);
#endif
CGameListCtrl::CGameListCtrl(wxWindow* parent, const wxWindowID id, const
wxPoint& pos, const wxSize& size, long style)
: wxListCtrl(parent, id, pos, size, style), toolTip(0)
@ -962,10 +967,13 @@ void CGameListCtrl::OnLeftClick(wxMouseEvent& event)
void CGameListCtrl::OnRightClick(wxMouseEvent& event)
{
#ifdef _WIN32
// [HACK]
// Restore initial ms_nLastMarginWidth's value.
// This should be done whenever a popup menu is created at run-time
wxOwnerDrawn().SetMarginWidth(MarginWidth);
#endif
// Focus the clicked item.
int flags;