Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-11-20 19:32:57 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:28:32 +0300
commit5fd86de514bd765f3a4a4a3323175d8eba6f3dd7 (patch)
tree8ffb05b08ab9b361b0da41f51dcff30e45c38d8a /mapshot
parent61733c1b282cf9338de2d5bc6da7227d769b2d20 (diff)
Review fixes
Diffstat (limited to 'mapshot')
-rw-r--r--mapshot/mapshot.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/mapshot/mapshot.cpp b/mapshot/mapshot.cpp
index 800aeb53f7..5a3a29d6bd 100644
--- a/mapshot/mapshot.cpp
+++ b/mapshot/mapshot.cpp
@@ -56,7 +56,11 @@ void RenderPlace(Framework & framework, Place const & place, string const & file
df::watch::FrameSymbols sym;
sym.m_showSearchResult = false;
- framework.DrawWatchFrame(MercatorBounds::FromLatLon(place.lat, place.lon), place.zoom - 17,
+ // If you are interested why, look at CPUDrawer::CalculateScreen.
+ // It is almost UpperComfortScale but there is some magic involved.
+ int constexpr kMagicBaseScale = 17;
+
+ framework.DrawWatchFrame(MercatorBounds::FromLatLon(place.lat, place.lon), place.zoom - kMagicBaseScale,
place.width, place.height, sym, frame);
ofstream file(filename.c_str());
@@ -105,7 +109,10 @@ int main(int argc, char * argv[])
cout << "Rendering " << place << " into " << filename << " is finished." << endl;
};
- f.InitWatchFrameRenderer(1.1);
+ // This magic constant was determined in several attempts.
+ // It is a scale level, basically, dpi factor. 1 means 90 or 96, it seems,
+ // and with 1.1 the map looks subjectively better.
+ f.InitWatchFrameRenderer(1.1 /* visualScale */);
if (!FLAGS_place.empty())
processPlace(FLAGS_place);