[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/libs
From: Gilles Caulier <caulier.gilles () gmail ! com>
Date: 2010-02-16 13:35:21
Message-ID: 1266327321.893229.5242.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1090983 by cgilles:
compile
M +0 -2 dimg/filters/curves/imagecurves.h
M +1 -3 widgets/common/curveswidget.cpp
--- trunk/extragear/graphics/digikam/libs/dimg/filters/curves/imagecurves.h #1090982:1090983
@@ -24,8 +24,6 @@
#ifndef IMAGECURVES_H
#define IMAGECURVES_H
-#define ROUND(x) ((int) ((x) + 0.5))
-
// Qt includes
#include <QtCore/QPoint>
--- trunk/extragear/graphics/digikam/libs/widgets/common/curveswidget.cpp #1090982:1090983
@@ -6,7 +6,7 @@
* Date : 2004-12-01
* Description : a widget to draw histogram curves
*
- * Copyright (C) 2004-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2004-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
@@ -121,7 +121,6 @@
void getHistogramCoordinates(const QPoint& mousePosition, int& x, int& y, int& closestPoint)
{
-
x = CLAMP((int)(mousePosition.x() *
((float)(q->m_imageHistogram->getMaxSegmentIndex()) / (float)q->width())),
0, q->m_imageHistogram->getMaxSegmentIndex());
@@ -151,7 +150,6 @@
{
closestPoint = (x + getDelta() / 2) / getDelta();
}
-
}
// --- rendering ---
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic