diff options
author | markd <markd> | 2005-03-29 11:03:18 +0000 |
---|---|---|
committer | markd <markd> | 2005-03-29 11:03:18 +0000 |
commit | ac2649a7994181f93718257d1c42ffe058659879 (patch) | |
tree | 0c638df0402b37576039d272e7d48ae1ea6a004f /graphics | |
parent | 67f0ae0da0b2fb5999dad3bfd37d093bd3137ab9 (diff) | |
download | pkgsrc-ac2649a7994181f93718257d1c42ffe058659879.tar.gz |
Fix build on Solaris. From KDE's KDE_3_4_BRANCH.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/kdegraphics3/distinfo | 4 | ||||
-rw-r--r-- | graphics/kdegraphics3/patches/patch-aa | 13 | ||||
-rw-r--r-- | graphics/kdegraphics3/patches/patch-ab | 13 |
3 files changed, 29 insertions, 1 deletions
diff --git a/graphics/kdegraphics3/distinfo b/graphics/kdegraphics3/distinfo index 552762f3057..5a45ab14505 100644 --- a/graphics/kdegraphics3/distinfo +++ b/graphics/kdegraphics3/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.27 2005/03/23 22:26:26 markd Exp $ +$NetBSD: distinfo,v 1.28 2005/03/29 11:03:18 markd Exp $ SHA1 (kdegraphics-3.4.0.tar.bz2) = 91217c718abb551e1c81feda0fd0ce2d4fd21e83 RMD160 (kdegraphics-3.4.0.tar.bz2) = 5509cc509afaa113c07a8c1eeb5d93afc40150f8 Size (kdegraphics-3.4.0.tar.bz2) = 6667685 bytes +SHA1 (patch-aa) = 10828cce1f68a2daa2a0edd6d9182f1f91f5cc53 +SHA1 (patch-ab) = 4019e5509c09cdcaca314d01c3850e818458d698 diff --git a/graphics/kdegraphics3/patches/patch-aa b/graphics/kdegraphics3/patches/patch-aa new file mode 100644 index 00000000000..f170b8ac50e --- /dev/null +++ b/graphics/kdegraphics3/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.7 2005/03/29 11:03:18 markd Exp $ + +--- kpdf/ui/pageview.cpp.orig 2005-03-29 11:56:20.631795000 +1200 ++++ kpdf/ui/pageview.cpp +@@ -1497,7 +1497,7 @@ void PageView::slotRelayoutPages() + // Here we find out column's width and row's height to compute a table + // so we can place widgets 'centered in virtual cells'. + int nCols = Settings::viewColumns(), +- nRows = (int)ceilf( (float)pageCount / (float)nCols ), ++ nRows = (int)ceil( (float)pageCount / (float)nCols ), + * colWidth = new int[ nCols ], + * rowHeight = new int[ nRows ], + cIdx = 0, diff --git a/graphics/kdegraphics3/patches/patch-ab b/graphics/kdegraphics3/patches/patch-ab new file mode 100644 index 00000000000..2aa79ac2b53 --- /dev/null +++ b/graphics/kdegraphics3/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.7 2005/03/29 11:03:18 markd Exp $ + +--- kpdf/ui/presentationwidget.cpp.orig 2005-03-29 11:58:40.224750000 +1200 ++++ kpdf/ui/presentationwidget.cpp +@@ -320,7 +320,7 @@ void PresentationWidget::overlayClick( c + return; + + // compute angle relative to indicator (note coord transformation) +- float angle = 0.5 + 0.5 * atan2f( -xPos, -yPos ) / M_PI; ++ float angle = 0.5 + 0.5 * atan2( -xPos, -yPos ) / M_PI; + int pageIndex = (int)( angle * ( m_frames.count() - 1 ) + 0.5 ); + + // go to selected page |