From: Carl Hetherington Date: Tue, 4 Aug 2020 21:40:45 +0000 (+0200) Subject: Fix flickering of timecode values on Windows. X-Git-Tag: v2.15.95~7 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b8e62db42a10067b3e49bd7f8d036ced75e003bb;p=dcpomatic.git Fix flickering of timecode values on Windows. --- diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 5651dc8f2..caa0dc823 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -259,15 +259,15 @@ void Controls::update_position_label () { if (!_film) { - _frame_number->SetLabel ("0"); - _timecode->SetLabel ("0:0:0.0"); + checked_set (_frame_number, wxT("0")); + checked_set (_timecode, wxT("0:0:0.0")); return; } double const fps = _film->video_frame_rate (); /* Count frame number from 1 ... not sure if this is the best idea */ - _frame_number->SetLabel (wxString::Format (wxT("%ld"), lrint (_viewer->position().seconds() * fps) + 1)); - _timecode->SetLabel (time_to_timecode (_viewer->position(), fps)); + checked_set (_frame_number, wxString::Format (wxT("%ld"), lrint (_viewer->position().seconds() * fps) + 1)); + checked_set (_timecode, time_to_timecode (_viewer->position(), fps)); } void