[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/plugins/paintops/libpaintop
From: Cyrille Berger <cyb () lepi ! org>
Date: 2009-03-27 21:40:32
Message-ID: 1238190032.515743.12889.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 945653 by berger:
Fix: drawing with "build op" looks like opacity is half what the user set
divide by PRESSURE_DEFAULT so that when drawing (especially with a mouse) the opacity \
selected by the user is used
M +2 -2 kis_pressure_opacity_option.cpp
--- trunk/koffice/krita/plugins/paintops/libpaintop/kis_pressure_opacity_option.cpp \
#945652:945653 @@ -37,9 +37,9 @@
quint8 origOpacity = painter->opacity();
if (!customCurve()) {
- painter->setOpacity((qint8)(origOpacity * pressure));
+ painter->setOpacity((qint8)(origOpacity * pressure / PRESSURE_DEFAULT));
} else {
- painter->setOpacity((qint8)(origOpacity * scaleToCurve(pressure)));
+ painter->setOpacity((qint8)(origOpacity * scaleToCurve(pressure) / \
PRESSURE_DEFAULT)); }
return origOpacity;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic