From 35c9c60b381c74cb9c513f5572c09c520388e97b Mon Sep 17 00:00:00 2001 From: gnick79 Date: Mon, 18 Apr 2011 17:35:03 +0000 Subject: [PATCH] - '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 --- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index 6f69b3006a..967f65df94 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -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;