From 202cb1e7d8b0cdc59598027c9d279fef1c640e83 Mon Sep 17 00:00:00 2001 From: apoorv569 Date: Sat, 6 Nov 2021 05:21:07 +0530 Subject: [PATCH] Fix wxBitmapButton function parameters for the new wx update. --- src/GUI/MainFrame.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/GUI/MainFrame.cpp b/src/GUI/MainFrame.cpp index edb0688..ee1b211 100644 --- a/src/GUI/MainFrame.cpp +++ b/src/GUI/MainFrame.cpp @@ -289,13 +289,15 @@ MainFrame::MainFrame() if (m_Theme.IsDark()) { m_PlayButton = new wxBitmapButton(m_TopControlsPanel, BC_Play, - static_cast(ICON_PLAY_LIGHT_16px), + wxBitmapBundle::FromBitmap(static_cast + (ICON_PLAY_LIGHT_16px)), wxDefaultPosition, wxDefaultSize, 0); m_LoopButton = new wxBitmapToggleButton(m_TopControlsPanel, BC_Loop, static_cast(ICON_LOOP_LIGHT_16px), wxDefaultPosition, wxDefaultSize, 0); m_StopButton = new wxBitmapButton(m_TopControlsPanel, BC_Stop, - static_cast(ICON_STOP_LIGHT_16px), + wxBitmapBundle::FromBitmap(static_cast + (ICON_STOP_LIGHT_16px)), wxDefaultPosition, wxDefaultSize, 0); m_MuteButton = new wxBitmapToggleButton(m_TopControlsPanel, BC_Mute, static_cast(ICON_MUTE_LIGHT_16px), @@ -304,13 +306,15 @@ MainFrame::MainFrame() else { m_PlayButton = new wxBitmapButton(m_TopControlsPanel, BC_Play, - static_cast(ICON_PLAY_DARK_16px), + wxBitmapBundle::FromBitmap(static_cast + (ICON_PLAY_DARK_16px)), wxDefaultPosition, wxDefaultSize, 0); m_LoopButton = new wxBitmapToggleButton(m_TopControlsPanel, BC_Loop, static_cast(ICON_LOOP_DARK_16px), wxDefaultPosition, wxDefaultSize, 0); m_StopButton = new wxBitmapButton(m_TopControlsPanel, BC_Stop, - static_cast(ICON_STOP_DARK_16px), + wxBitmapBundle::FromBitmap(static_cast + (ICON_STOP_DARK_16px)), wxDefaultPosition, wxDefaultSize, 0); m_MuteButton = new wxBitmapToggleButton(m_TopControlsPanel, BC_Mute, static_cast(ICON_MUTE_DARK_16px),