]> git.pld-linux.org Git - packages/performous.git/blob - performous-boost.patch
024b0f64106d938b49c32f05ab5c1b4aa0b9e0f7
[packages/performous.git] / performous-boost.patch
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  
This page took 0.048146 seconds and 2 git commands to generate.