WXGUI: Fix disabled play button not being faded.

Followed from PR #3333.
This commit is contained in:
EmptyChaos 2016-03-13 15:10:42 +00:00
parent 03071c0c5c
commit 564341ab3d
1 changed files with 4 additions and 2 deletions

View File

@ -1792,13 +1792,15 @@ void CFrame::UpdateGUI()
{
m_ToolBar->DeleteTool(IDM_PLAY);
m_ToolBar->InsertTool(position, IDM_PLAY, _("Pause"), m_Bitmaps[Toolbar_Pause],
wxNullBitmap, wxITEM_NORMAL, _("Pause"));
WxUtils::CreateDisabledButtonBitmap(m_Bitmaps[Toolbar_Pause]),
wxITEM_NORMAL, _("Pause"));
}
else
{
m_ToolBar->DeleteTool(IDM_PLAY);
m_ToolBar->InsertTool(position, IDM_PLAY, _("Play"), m_Bitmaps[Toolbar_Play],
wxNullBitmap, wxITEM_NORMAL, _("Play"));
WxUtils::CreateDisabledButtonBitmap(m_Bitmaps[Toolbar_Play]),
wxITEM_NORMAL, _("Play"));
}
m_ToolBar->Realize();
}