diff options
author | richard <richard@pkgsrc.org> | 2015-10-05 05:09:05 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2015-10-05 05:09:05 +0000 |
commit | 6baf0ac82f5e3b64d86fe92b378596497311c669 (patch) | |
tree | efc96e1b0bcb1b39dbddef2454ca12798a1e5e1e /games/palapeli | |
parent | 7f98b98a86f14391896d35cd1bf5368aab549361 (diff) | |
download | pkgsrc-6baf0ac82f5e3b64d86fe92b378596497311c669.tar.gz |
patch to avoid error calling overloaded sqrt by using std::sqrt on SunOS
Diffstat (limited to 'games/palapeli')
-rw-r--r-- | games/palapeli/distinfo | 3 | ||||
-rw-r--r-- | games/palapeli/patches/patch-src_engine_puzzlepreview.cpp | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/games/palapeli/distinfo b/games/palapeli/distinfo index f1038ca7ae7..6ac9748d574 100644 --- a/games/palapeli/distinfo +++ b/games/palapeli/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2014/11/14 08:49:41 markd Exp $ +$NetBSD: distinfo,v 1.6 2015/10/05 05:09:05 richard Exp $ SHA1 (palapeli-4.14.3.tar.xz) = 1f1419c96804fc95dcf2518cf7656f63c2b66ca7 RMD160 (palapeli-4.14.3.tar.xz) = be0b51037a44bee1331b3b45d61487f1d2a93c4f Size (palapeli-4.14.3.tar.xz) = 1747840 bytes +SHA1 (patch-src_engine_puzzlepreview.cpp) = 5a9139be67209840989c26f1faffff08a1c2c9b4 diff --git a/games/palapeli/patches/patch-src_engine_puzzlepreview.cpp b/games/palapeli/patches/patch-src_engine_puzzlepreview.cpp new file mode 100644 index 00000000000..395e2bfb8bb --- /dev/null +++ b/games/palapeli/patches/patch-src_engine_puzzlepreview.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-src_engine_puzzlepreview.cpp,v 1.1 2015/10/05 05:09:05 richard Exp $ +avoid call of overloaded sqrt error (on SunOS) +--- src/engine/puzzlepreview.cpp.orig 2014-07-18 08:06:37.000000000 +0000 ++++ src/engine/puzzlepreview.cpp +@@ -75,7 +75,7 @@ void Palapeli::PuzzlePreview::loadImageF + setImage(md.image); + setWindowTitle(i18n("%1 - Preview", md.name)); + // Set hover-zoom so that 3x3 pieces would be visible on a square grid. +- m_hoverZoom = sqrt(md.pieceCount)/3.0; ++ m_hoverZoom = std::sqrt(md.pieceCount)/3.0; + if (m_hoverZoom < 1) + m_hoverZoom = 1; + } |