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