Mercurial > hg > svgui
diff view/View.h @ 1375:694004228ab7 zoom
Fix incorrect start/end overlay drawing when zoomed far in
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 10:51:46 +0000 |
parents | 93eaff6f206d |
children | 28075cc658c9 |
line wrap: on
line diff
--- a/view/View.h Tue Nov 06 08:59:03 2018 +0000 +++ b/view/View.h Tue Nov 06 10:51:46 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;