mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-26 06:58:22 +01:00
redraw playhead only if pixel position changed.
This commit is contained in:
parent
70a493d510
commit
85e701880b
1 changed files with 2 additions and 2 deletions
|
|
@ -77,11 +77,11 @@ EditorCursor::~EditorCursor ()
|
|||
void
|
||||
EditorCursor::set_position (framepos_t frame)
|
||||
{
|
||||
PositionChanged (frame);
|
||||
if (_current_frame != frame) { PositionChanged (frame); }
|
||||
|
||||
double const new_pos = _editor.sample_to_pixel_unrounded (frame);
|
||||
|
||||
if (new_pos != _track_canvas_item->x ()) {
|
||||
if (rint(new_pos) != rint(_track_canvas_item->x ())) {
|
||||
_track_canvas_item->set_x (new_pos);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue