Fix up some comments.

git-svn-id: svn://localhost/ardour2/branches/3.0@10289 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-22 23:18:59 +00:00
parent ab024c7601
commit 81808ac866
1 changed files with 7 additions and 7 deletions

View File

@ -2397,6 +2397,9 @@ MidiRegionView::note_dropped(CanvasNoteEvent *, frameoffset_t dt, int8_t dnote)
}
}
/** @param x Pixel relative to the region position.
* @return Snapped frame relative to the region position.
*/
framepos_t
MidiRegionView::snap_pixel_to_frame(double x)
{
@ -2404,6 +2407,9 @@ MidiRegionView::snap_pixel_to_frame(double x)
return snap_frame_to_frame (editor.pixel_to_frame (x));
}
/** @param x Pixel relative to the region position.
* @return Snapped pixel relative to the region position.
*/
double
MidiRegionView::snap_to_pixel(double x)
{
@ -2543,9 +2549,6 @@ MidiRegionView::update_resizing (ArdourCanvas::CanvasNoteEvent* primary, bool at
double beats;
beats = snap_pixel_to_frame (current_x);
/* XXX not sure this is correct - snap_pixel_to_frame()
returns an absolute frame.
*/
beats = region_frames_to_region_beats (beats);
double len;
@ -2608,13 +2611,10 @@ MidiRegionView::commit_resizing (ArdourCanvas::CanvasNoteEvent* primary, bool at
}
}
/* Convert that to a frame within the region */
/* Convert that to a frame within the source */
current_x = snap_pixel_to_frame (current_x) + _region->start ();
/* and then to beats */
/* XXX not sure this is correct - snap_pixel_to_frame()
returns an absolute frame.
*/
current_x = region_frames_to_region_beats (current_x);
if (at_front && current_x < canvas_note->note()->end_time()) {