mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +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)
|
, _follows_playhead (follows_playhead)
|
||||||
, _accept_on_focus_out (accept_on_focus_out)
|
, _accept_on_focus_out (accept_on_focus_out)
|
||||||
, _off (false)
|
, _off (false)
|
||||||
, em_width (0)
|
|
||||||
, _edit_by_click_field (false)
|
, _edit_by_click_field (false)
|
||||||
, _negative_allowed (false)
|
, _negative_allowed (false)
|
||||||
, edit_is_negative (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_set_source_rgba (cr, cursor_r, cursor_g, cursor_b, cursor_a);
|
||||||
cairo_rectangle (cr,
|
cairo_rectangle (cr,
|
||||||
min (get_width() - 2.0,
|
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,
|
(get_height() - layout_height)/2.0,
|
||||||
2.0, cursor.get_height()/PANGO_SCALE);
|
2.0, cursor.get_height()/PANGO_SCALE);
|
||||||
cairo_fill (cr);
|
cairo_fill (cr);
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
||||||
bool _follows_playhead;
|
bool _follows_playhead;
|
||||||
bool _accept_on_focus_out;
|
bool _accept_on_focus_out;
|
||||||
bool _off;
|
bool _off;
|
||||||
int em_width;
|
|
||||||
bool _edit_by_click_field;
|
bool _edit_by_click_field;
|
||||||
bool _negative_allowed;
|
bool _negative_allowed;
|
||||||
bool edit_is_negative;
|
bool edit_is_negative;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue