forked from organicmaps/organicmaps
fixes according to code review.
This commit is contained in:
parent
d153b65b03
commit
d83b3d3384
6 changed files with 3 additions and 20 deletions
|
@ -112,7 +112,7 @@
|
|||
Framework & f = GetFramework();
|
||||
shared_ptr<location::State> ls = f.GetLocationState();
|
||||
|
||||
if (newStatus == 1)
|
||||
if (newStatus == location::ECompassFollow)
|
||||
[m_myPositionButton setImage:[UIImage imageNamed:@"location-follow.png"] forState:UIControlStateSelected];
|
||||
else
|
||||
{
|
||||
|
@ -174,7 +174,7 @@
|
|||
[[MapsAppDelegate theApp] enableStandby];
|
||||
[[MapsAppDelegate theApp].m_locationManager stop:self];
|
||||
|
||||
m_myPositionButton.selected = YES;
|
||||
m_myPositionButton.selected = NO;
|
||||
[m_myPositionButton setImage:[UIImage imageNamed:@"location.png"] forState:UIControlStateSelected];
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ size_t BasicTilingRenderPolicy::CalculateTileSize(size_t screenWidth, size_t scr
|
|||
|
||||
BasicTilingRenderPolicy::BasicTilingRenderPolicy(Params const & p,
|
||||
bool doUseQueuedRenderer)
|
||||
: RenderPolicy(p, GetPlatform().DoSupportRotation(), GetPlatform().CpuCores()),
|
||||
: RenderPolicy(p, GetPlatform().IsPro(), GetPlatform().CpuCores()),
|
||||
m_DrawScale(0),
|
||||
m_IsEmptyModel(false),
|
||||
m_DoRecreateCoverage(false),
|
||||
|
|
|
@ -128,8 +128,6 @@ public:
|
|||
|
||||
inline bool IsPro() const { return m_isPro; }
|
||||
|
||||
bool DoSupportRotation() const;
|
||||
|
||||
/// @return url for clients to download maps
|
||||
//@{
|
||||
string MetaServerUrl() const;
|
||||
|
|
|
@ -129,11 +129,6 @@ namespace
|
|||
};
|
||||
}
|
||||
|
||||
bool Platform::DoSupportRotation() const
|
||||
{
|
||||
return IsPro();
|
||||
}
|
||||
|
||||
void Platform::RunAsync(TFunctor const & fn, Priority p)
|
||||
{
|
||||
UNUSED_VALUE(p);
|
||||
|
|
|
@ -172,11 +172,6 @@ string Platform::UniqueClientId() const
|
|||
return HashUniqueID(GetMacAddress() + GetDeviceUid());
|
||||
}
|
||||
|
||||
bool Platform::DoSupportRotation() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static void PerformImpl(void * obj)
|
||||
{
|
||||
Platform::TFunctor * f = reinterpret_cast<Platform::TFunctor *>(obj);
|
||||
|
|
|
@ -67,11 +67,6 @@ int Platform::VideoMemoryLimit() const
|
|||
return 20 * 1024 * 1024;
|
||||
}
|
||||
|
||||
bool Platform::DoSupportRotation() const
|
||||
{
|
||||
return IsPro();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
extern Platform & GetPlatform()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue