From fd3fa29cd4095418323e879731ea24836072fbf3 Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 17 Jan 2013 20:13:35 +0300 Subject: [PATCH] fixed TilingRenderPolicyST resources sizes for HiDpi screens. --- map/tiling_render_policy_st.cpp | 12 +++++++----- 1 file 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,