comparison 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
comparison
equal deleted inserted replaced
1374:631897ba9fca 1375:694004228ab7
102 */ 102 */
103 sv_frame_t getEndFrame() const; 103 sv_frame_t getEndFrame() const;
104 104
105 /** 105 /**
106 * Return the pixel x-coordinate corresponding to a given sample 106 * Return the pixel x-coordinate corresponding to a given sample
107 * frame (which may be negative). 107 * frame. The frame is permitted to be negative, and the result
108 * may be outside the currently visible area. But this should not
109 * be called with frame values very far away from the currently
110 * visible area, as that could lead to overflow. In that situation
111 * an error will be logged and 0 returned.
108 */ 112 */
109 int getXForFrame(sv_frame_t frame) const; 113 int getXForFrame(sv_frame_t frame) const;
110 114
111 /** 115 /**
112 * Return the closest frame to the given pixel x-coordinate. 116 * Return the closest frame to the given pixel x-coordinate.