http://kdenlive.org/mantis/view.php?id=2077
svn path=/trunk/kdenlive/; revision=5556
float x;
float x_prev = 0;
float x;
float x_prev = 0;
uint i;
if (((float) (right-left))/targetSize < 2) {
for (i = 0; i < targetSize; i++) {
uint i;
if (((float) (right-left))/targetSize < 2) {
for (i = 0; i < targetSize; i++) {
// Use linear interpolation in order to get smoother display
// Use linear interpolation in order to get smoother display
- if (xi == 0 || xi == in.size()-1) {
+ if (xi == 0 || xi == (uint) in.size()-1) {
// ... except if we are at the left or right border of the input sigal.
// Special case here since we consider previous and future values as well for
// the actual interpolation (not possible here).
// ... except if we are at the left or right border of the input sigal.
// Special case here since we consider previous and future values as well for
// the actual interpolation (not possible here).
- for (; src < xi && src < in.size(); src++) {
+ for (; src < xi && src < (uint) in.size(); src++) {
if (out[i] < in[src]) {
out[i] = in[src];
}
if (out[i] < in[src]) {
out[i] = in[src];
}
-void BezierSplineEditor::mouseDoubleClickEvent(QMouseEvent* event)
+void BezierSplineEditor::mouseDoubleClickEvent(QMouseEvent* /*event*/)
{
if (m_currentPointIndex >= 0) {
BPoint p = m_spline.getPoint(m_currentPointIndex);
{
if (m_currentPointIndex >= 0) {
BPoint p = m_spline.getPoint(m_currentPointIndex);
int BezierSplineEditor::nearestPointInRange(QPointF p, int wWidth, int wHeight, BezierSplineEditor::point_types* sel)
{
double nearestDistanceSquared = 1000;
int BezierSplineEditor::nearestPointInRange(QPointF p, int wWidth, int wHeight, BezierSplineEditor::point_types* sel)
{
double nearestDistanceSquared = 1000;
- point_types selectedPoint;
+ point_types selectedPoint = PTypeP;
int nearestIndex = -1;
int i = 0;
int nearestIndex = -1;
int i = 0;