[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] krita/plugins/paintops/libbrush: Temporary fix for the subpixel precision bug in the upda
From: Dmitry Kazakov <dimula73 () gmail ! com>
Date: 2013-07-16 12:52:40
Message-ID: E1Uz4kC-0003se-4Y () scm ! kde ! org
[Download RAW message or body]
Git commit de3347b0689d85e87e82ea175b479c94ca62b753 by Dmitry Kazakov.
Committed on 16/07/2013 at 12:51.
Pushed by dkazakov into branch 'master'.
Temporary fix for the subpixel precision bug in the updated brush engine
We need to make the paint-ops handle subpixel precision more seriously.
Specifically, the maskWidth()/maskHeight() should take the subpixels into
account.
M +2 -2 krita/plugins/paintops/libbrush/kis_brush.cpp
http://commits.kde.org/calligra/de3347b0689d85e87e82ea175b479c94ca62b753
diff --git a/krita/plugins/paintops/libbrush/kis_brush.cpp \
b/krita/plugins/paintops/libbrush/kis_brush.cpp index 83e90fc..54a1ea4 100644
--- a/krita/plugins/paintops/libbrush/kis_brush.cpp
+++ b/krita/plugins/paintops/libbrush/kis_brush.cpp
@@ -293,7 +293,7 @@ qint32 KisBrush::maskWidth(double scale, double angle, const \
KisPaintInformation scale *= d->scale;
return KisQImagePyramid::imageSize(QSize(width(), height()),
- scale, angle, 0.0, 0.0).width();
+ scale, angle, 0.5, 0.5).width();
}
qint32 KisBrush::maskHeight(double scale, double angle, const KisPaintInformation& \
info) const @@ -308,7 +308,7 @@ qint32 KisBrush::maskHeight(double scale, double \
angle, const KisPaintInformatio scale *= d->scale;
return KisQImagePyramid::imageSize(QSize(width(), height()),
- scale, angle, 0.0, 0.0).height();
+ scale, angle, 0.5, 0.5).height();
}
double KisBrush::maskAngle(double angle) const
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic