mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
AudioClock: drop unused em_width
This commit is contained in:
parent
e1e8207486
commit
8fe7970c7c
2 changed files with 1 additions and 3 deletions
|
|
@ -85,7 +85,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
|
|||
, _follows_playhead (follows_playhead)
|
||||
, _accept_on_focus_out (accept_on_focus_out)
|
||||
, _off (false)
|
||||
, em_width (0)
|
||||
, _edit_by_click_field (false)
|
||||
, _negative_allowed (false)
|
||||
, edit_is_negative (false)
|
||||
|
|
@ -316,7 +315,7 @@ AudioClock::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t*
|
|||
cairo_set_source_rgba (cr, cursor_r, cursor_g, cursor_b, cursor_a);
|
||||
cairo_rectangle (cr,
|
||||
min (get_width() - 2.0,
|
||||
(double) xcenter + cursor.get_x()/PANGO_SCALE + em_width),
|
||||
(double) xcenter + cursor.get_x()/PANGO_SCALE),
|
||||
(get_height() - layout_height)/2.0,
|
||||
2.0, cursor.get_height()/PANGO_SCALE);
|
||||
cairo_fill (cr);
|
||||
|
|
|
|||
|
|
@ -135,7 +135,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
|||
bool _follows_playhead;
|
||||
bool _accept_on_focus_out;
|
||||
bool _off;
|
||||
int em_width;
|
||||
bool _edit_by_click_field;
|
||||
bool _negative_allowed;
|
||||
bool edit_is_negative;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue