Mercurial > hg > svgui
diff view/View.h @ 1376:5a051ca3170e
Merge from branch zoom
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 11:13:13 +0000 |
parents | 694004228ab7 |
children | 28075cc658c9 |
line wrap: on
line diff
--- a/view/View.h Mon Nov 05 13:30:21 2018 +0000 +++ b/view/View.h Tue Nov 06 11:13:13 2018 +0000 @@ -104,7 +104,11 @@ /** * Return the pixel x-coordinate corresponding to a given sample - * frame (which may be negative). + * frame. The frame is permitted to be negative, and the result + * may be outside the currently visible area. But this should not + * be called with frame values very far away from the currently + * visible area, as that could lead to overflow. In that situation + * an error will be logged and 0 returned. */ int getXForFrame(sv_frame_t frame) const;