]> git.pld-linux.org Git - packages/performous.git/blame - performous-boost.patch
- one more fix in boost patch; release 3 (boost 1.73)
[packages/performous.git] / performous-boost.patch
CommitLineData
6069cfb0
JB
1--- performous-1.1/game/backgrounds.hh.orig 2016-01-23 11:40:01.000000000 +0100
2+++ performous-1.1/game/backgrounds.hh 2019-05-08 16:01:24.991915179 +0200
3@@ -3,6 +3,7 @@
4 //#include "animvalue.hh"
5 #include "fs.hh"
6 //#include "song.hh"
7+#include <boost/noncopyable.hpp>
8 #include <boost/shared_ptr.hpp>
9 #include <boost/scoped_ptr.hpp>
10 #include <boost/thread/mutex.hpp>
11--- performous-1.1/game/audio.cc.orig 2019-05-08 17:34:23.030331012 +0200
12+++ performous-1.1/game/audio.cc 2019-05-08 17:34:26.247165898 +0200
13@@ -77,7 +77,7 @@
14 static ptime getTime() { return microsec_clock::universal_time(); }
15 // Conversion helpers
16 static double getSeconds(time_duration t) { return 1e-6 * t.total_microseconds(); }
17- static time_duration getDuration(double seconds) { return microseconds(1e6 * seconds); }
18+ static time_duration getDuration(double seconds) { return microseconds(static_cast<long>(1e6 * seconds)); }
19
20 mutable boost::mutex m_mutex;
21 ptime m_baseTime; ///< A reference time (corresponds to m_basePos)
22@@ -149,7 +149,7 @@
23 int64_t m_pos; ///< Current sample position
24 bool m_preview;
25 AudioClock m_clock;
26- time_duration durationOf(int64_t samples) const { return microseconds(1e6 * samples / srate / 2.0); }
27+ time_duration durationOf(int64_t samples) const { return microseconds(static_cast<long>(1e6 * samples / srate / 2.0)); }
28 public:
29 bool suppressCenterChannel;
30 double fadeLevel;
31--- performous-1.1/game/songs.hh.orig 2016-01-23 11:40:01.000000000 +0100
32+++ performous-1.1/game/songs.hh 2019-05-08 17:34:44.194771102 +0200
33@@ -2,6 +2,7 @@
34
35 #include "animvalue.hh"
36 #include "fs.hh"
37+#include <boost/noncopyable.hpp>
38 #include <boost/shared_ptr.hpp>
39 #include <boost/scoped_ptr.hpp>
40 #include <boost/thread/mutex.hpp>
41--- performous-1.1/game/svg.cc.orig 2016-01-23 11:40:01.000000000 +0100
42+++ performous-1.1/game/svg.cc 2019-05-08 17:49:07.689926184 +0200
43@@ -4,6 +4,7 @@
44 #include "configuration.hh"
45 #include "../common/image.hh"
46
47+#include <boost/shared_ptr.hpp>
48 #include <librsvg/rsvg.h>
49 #include <iostream>
50
b2fe5a37
JB
51--- performous-1.1/game/surface.cc.orig 2016-01-23 11:40:01.000000000 +0100
52+++ performous-1.1/game/surface.cc 2020-07-31 21:42:13.921188533 +0200
53@@ -135,7 +135,7 @@
54 bitmap.resize(1, 1);
55 target->load(bitmap);
56 // Ask the loader to retrieve the image
57- ldr->push(target, Job(name, boost::bind(&T::load, target, _1)));
58+ ldr->push(target, Job(name, boost::bind(&T::load, target, boost::placeholders::_1)));
59 }
60
61 Surface::Surface(fs::path const& filename) { loader(this, filename); }
This page took 0.079608 seconds and 4 git commands to generate.