summaryrefslogtreecommitdiff
path: root/gtk2_ardour/video_image_frame.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-04-17 03:34:54 +0200
committerRobin Gareus <robin@gareus.org>2013-04-17 03:34:54 +0200
commit5285d21e352638daa3a7f3b871bfedcffe3ca312 (patch)
tree5bc30dfa661ba3b6eed318cb59841c93e098e6db /gtk2_ardour/video_image_frame.cc
parent6a4cddbc4c645fd0d49d60b854b1773b32026770 (diff)
amend to 930fce
Diffstat (limited to 'gtk2_ardour/video_image_frame.cc')
-rw-r--r--gtk2_ardour/video_image_frame.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/video_image_frame.cc b/gtk2_ardour/video_image_frame.cc
index 7164f84551..aeafe85997 100644
--- a/gtk2_ardour/video_image_frame.cc
+++ b/gtk2_ardour/video_image_frame.cc
@@ -48,10 +48,10 @@ VideoImageFrame::VideoImageFrame (PublicEditor& ed, ArdourCanvas::Group& parent,
queued_request=false;
video_frame_number = -1;
rightend = -1;
- frame_position = 0;
+ sample_position = 0;
thread_active=false;
- unit_position = editor.sample_to_pixel (frame_position);
+ unit_position = editor.sample_to_pixel (sample_position);
image = new ArdourCanvas::Image (_parent, Cairo::FORMAT_ARGB32, clip_width, clip_height);
img = image->get_image();
@@ -72,18 +72,18 @@ VideoImageFrame::~VideoImageFrame ()
}
void
-VideoImageFrame::set_position (framepos_t frame)
+VideoImageFrame::set_position (framepos_t sample)
{
double new_unit_position = editor.sample_to_pixel (frame);
image->move (ArdourCanvas::Duple (new_unit_position - unit_position, 0.0));
- frame_position = frame;
+ sample_position = sample;
unit_position = new_unit_position;
}
void
VideoImageFrame::reposition ()
{
- set_position (frame_position);
+ set_position (sample_position);
}
void