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:
authorrachytski <siarhei.rachytski@gmail.com>2013-01-17 21:13:35 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:55 +0300
commitfd3fa29cd4095418323e879731ea24836072fbf3 (patch)
tree2d1e1215b37a7591edb6351229315cb2dad334b4
parent2b95842fe50a1dbf9635192490f2b1df2fe171ee (diff)
fixed TilingRenderPolicyST resources sizes for HiDpi screens.
-rw-r--r--map/tiling_render_policy_st.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/map/tiling_render_policy_st.cpp b/map/tiling_render_policy_st.cpp
index aca3750dee..728d5c6252 100644
--- a/map/tiling_render_policy_st.cpp
+++ b/map/tiling_render_policy_st.cpp
@@ -23,8 +23,10 @@ TilingRenderPolicyST::TilingRenderPolicyST(Params const & p)
graphics::ResourceManager::TexturePoolParams tpp;
graphics::ResourceManager::StoragePoolParams spp;
+ int k = int(ceil(VisualScale()));
+
tpp = graphics::ResourceManager::TexturePoolParams(512,
- 256,
+ 512,
1,
rmp.m_texFormat,
graphics::ELargeTexture,
@@ -32,8 +34,8 @@ TilingRenderPolicyST::TilingRenderPolicyST(Params const & p)
rmp.m_textureParams[tpp.m_textureType] = tpp;
- tpp = graphics::ResourceManager::TexturePoolParams(256,
- 256,
+ tpp = graphics::ResourceManager::TexturePoolParams(256 * k,
+ 256 * k,
10,
rmp.m_texFormat,
graphics::EMediumTexture,
@@ -50,8 +52,8 @@ TilingRenderPolicyST::TilingRenderPolicyST(Params const & p)
rmp.m_textureParams[tpp.m_textureType] = tpp;
- tpp = graphics::ResourceManager::TexturePoolParams(256,
- 128,
+ tpp = graphics::ResourceManager::TexturePoolParams(128 * k,
+ 128 * k,
2,
rmp.m_texFormat,
graphics::ESmallTexture,