From adfcddd3291927058f52f85153078ddbf82ce88f Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Fri, 1 Dec 2023 09:58:53 +0800 Subject: [PATCH] FIX: show video size in stat Change-Id: I29df549e5ed573bb7b9a96d9a0897f3ce96ec87f Jira: none (cherry picked from commit 4cf79f34ad8f16331c597ad49234e0401826c34a) --- src/slic3r/GUI/MediaPlayCtrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MediaPlayCtrl.cpp b/src/slic3r/GUI/MediaPlayCtrl.cpp index d4e3b58b7..efd21f581 100644 --- a/src/slic3r/GUI/MediaPlayCtrl.cpp +++ b/src/slic3r/GUI/MediaPlayCtrl.cpp @@ -45,7 +45,8 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w m_label_stat->SetForegroundColour(wxColour("#323A3C")); #if !BBL_RELEASE_TO_PUBLIC m_media_ctrl->Bind(EVT_MEDIA_CTRL_STAT, [this](auto & e) { - m_label_stat->SetLabel(e.GetString()); + wxSize size = m_media_ctrl->GetVideoSize(); + m_label_stat->SetLabel(e.GetString() + wxString::Format(" VS:%ix%i", size.x, size.y)); }); #endif