forked from organicmaps/organicmaps
Fixed compilation on Linux
This commit is contained in:
parent
5b6e34fbdf
commit
5e9219293d
2 changed files with 11 additions and 3 deletions
|
@ -56,9 +56,16 @@ void DrapeGui::Destroy()
|
|||
|
||||
void DrapeGui::SetSurfaceSize(m2::PointF const & size)
|
||||
{
|
||||
lock_guard<mutex> lock(m_surfaceSizeMutex);
|
||||
m_surfaceSize = size;
|
||||
}
|
||||
|
||||
m2::PointF DrapeGui::GetSurfaceSize() const
|
||||
{
|
||||
lock_guard<mutex> lock(m_surfaceSizeMutex);
|
||||
return m_surfaceSize;
|
||||
}
|
||||
|
||||
void DrapeGui::SetLocalizator(const DrapeGui::TLocalizeStringFn & fn)
|
||||
{
|
||||
ASSERT(m_impl != nullptr, ());
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "std/function.hpp"
|
||||
#include "std/unique_ptr.hpp"
|
||||
#include "std/atomic.hpp"
|
||||
#include "std/mutex.hpp"
|
||||
|
||||
class ScreenBase;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
void SetLocalizator(TLocalizeStringFn const & fn);
|
||||
void Destroy();
|
||||
void SetSurfaceSize(m2::PointF const & size);
|
||||
m2::PointF GetSurfaceSize() const { return m_surfaceSize; }
|
||||
m2::PointF GetSurfaceSize() const;
|
||||
|
||||
string GetLocalizedString(string const & stringID) const;
|
||||
|
||||
|
@ -69,7 +69,8 @@ private:
|
|||
|
||||
Shape::TTapHandler m_onCompassTappedHandler;
|
||||
CountryStatus::TButtonHandlers m_buttonHandlers;
|
||||
atomic<m2::PointF> m_surfaceSize;
|
||||
m2::PointF m_surfaceSize;
|
||||
mutable mutex m_surfaceSizeMutex;
|
||||
bool m_inUserAction = false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue