mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/calligra fix
This commit is contained in:
parent
030eacccf2
commit
bbe64452d0
2 changed files with 25 additions and 34 deletions
|
@ -38,10 +38,13 @@ groups=('calligra')
|
||||||
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz"
|
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz"
|
||||||
'arm.patch')
|
'arm.patch')
|
||||||
md5sums=('78ca03bcd5e5a4aff23694fce3835735'
|
md5sums=('78ca03bcd5e5a4aff23694fce3835735'
|
||||||
'dc5105bcc612560f46d27071aca69cba')
|
'e701bc237f84bfa9ed6531d1446008da')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
|
cd ${pkgbase}-${pkgver}
|
||||||
|
patch -p1 -i ../arm.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
|
@ -1,36 +1,24 @@
|
||||||
diff -urN a/krita/image/kis_fixed_point_maths.h b/krita/image/kis_fixed_point_maths.h
|
diff -urN a/krita/image/kis_circle_mask_generator.cpp b/krita/image/kis_circle_mask_generator.cpp
|
||||||
--- a/krita/image/kis_fixed_point_maths.h 2014-03-02 07:46:08.000000000 -0700
|
--- a/krita/image/kis_circle_mask_generator.cpp 2015-02-24 05:53:08.000000000 -0700
|
||||||
+++ b/krita/image/kis_fixed_point_maths.h 2014-03-05 12:33:56.583956529 -0700
|
+++ b/krita/image/kis_circle_mask_generator.cpp 2015-03-03 16:52:50.040204434 -0700
|
||||||
@@ -34,7 +34,7 @@
|
@@ -122,7 +122,7 @@
|
||||||
d = iValue << 8;
|
void KisCircleMaskGenerator::setSoftness(qreal softness)
|
||||||
}
|
|
||||||
|
|
||||||
- KisFixedPoint(qreal fValue) {
|
|
||||||
+ KisFixedPoint(double fValue) {
|
|
||||||
d = fValue * (1 << 8);
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -urN a/krita/ui/kis_image_view_converter.cpp b/krita/ui/kis_image_view_converter.cpp
|
|
||||||
--- a/krita/ui/kis_image_view_converter.cpp 2014-03-02 07:46:08.000000000 -0700
|
|
||||||
+++ b/krita/ui/kis_image_view_converter.cpp 2014-03-05 12:33:56.583956529 -0700
|
|
||||||
@@ -40,7 +40,7 @@
|
|
||||||
|
|
||||||
// remember here; document is postscript points; view is krita pixels.
|
|
||||||
|
|
||||||
-void KisImageViewConverter::zoom(qreal *zoomX, qreal *zoomY) const
|
|
||||||
+void KisImageViewConverter::zoom(double *zoomX, double *zoomY) const
|
|
||||||
{
|
{
|
||||||
Q_ASSERT(zoomX);
|
KisMaskGenerator::setSoftness(softness);
|
||||||
Q_ASSERT(zoomY);
|
- qreal safeSoftnessCoeff = 1.0 / qMax(0.01, softness);
|
||||||
diff -urN a/krita/ui/kis_image_view_converter.h b/krita/ui/kis_image_view_converter.h
|
+ qreal safeSoftnessCoeff = 1.0 / qMax(0.01, (double)softness);
|
||||||
--- a/krita/ui/kis_image_view_converter.h 2014-03-02 07:46:08.000000000 -0700
|
|
||||||
+++ b/krita/ui/kis_image_view_converter.h 2014-03-05 12:33:56.588956485 -0700
|
|
||||||
@@ -52,7 +52,7 @@
|
|
||||||
using KoViewConverter::viewToDocument;
|
|
||||||
|
|
||||||
/// reimplemented from superclass
|
d->transformedFadeX = d->xfadecoef * safeSoftnessCoeff;
|
||||||
- void zoom(qreal *zoomX, qreal *zoomY) const;
|
d->transformedFadeY = d->yfadecoef * safeSoftnessCoeff;
|
||||||
+ void zoom(double *zoomX, double *zoomY) const;
|
diff -urN a/krita/image/kis_rect_mask_generator.cpp b/krita/image/kis_rect_mask_generator.cpp
|
||||||
|
--- a/krita/image/kis_rect_mask_generator.cpp 2015-02-24 05:53:08.000000000 -0700
|
||||||
|
+++ b/krita/image/kis_rect_mask_generator.cpp 2015-03-03 16:52:19.980206593 -0700
|
||||||
|
@@ -72,7 +72,7 @@
|
||||||
|
void KisRectangleMaskGenerator::setSoftness(qreal softness)
|
||||||
|
{
|
||||||
|
KisMaskGenerator::setSoftness(softness);
|
||||||
|
- qreal safeSoftnessCoeff = 1.0 / qMax(0.01, softness);
|
||||||
|
+ qreal safeSoftnessCoeff = 1.0 / qMax(0.01, (double)softness);
|
||||||
|
|
||||||
qreal documentToViewX(qreal documentX) const;
|
d->transformedFadeX = d->xfadecoeff * safeSoftnessCoeff;
|
||||||
qreal documentToViewY(qreal documentY) const;
|
d->transformedFadeY = d->yfadecoeff * safeSoftnessCoeff;
|
||||||
|
|
Loading…
Reference in a new issue