diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-19 20:21:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-03 10:07:15 +0200 |
| commit | f0d3c449519e801470e9fae9de4cbe0bf79adaf3 (patch) | |
| tree | a9f1edfca097ab65f2a5a5747bcb961c1ac1a82b | |
| parent | 60359aa72cb4a835f889853b6fc38d394d55c853 (diff) | |
Remove some pointless conversions.
| -rw-r--r-- | src/wx/timeline_reels_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/timeline_reels_view.cc b/src/wx/timeline_reels_view.cc index 6c0ec49ff..0351bc191 100644 --- a/src/wx/timeline_reels_view.cc +++ b/src/wx/timeline_reels_view.cc @@ -100,10 +100,10 @@ TimelineReelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>>) wxDouble str_leading; gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading); - int const available_width = time_x(DCPTime(i.to.get())) - time_x(DCPTime(i.from.get())); + int const available_width = time_x(i.to) - time_x(i.from); if (available_width > str_width) { - gc->DrawText (str, time_x(DCPTime(i.from.get())) + (available_width - str_width) / 2, _y + 4); + gc->DrawText (str, time_x(i.from) + (available_width - str_width) / 2, _y + 4); } } } |
