diff --git a/yg/texture.hpp b/yg/texture.hpp index df3ec4863e..b6ecc2a464 100644 --- a/yg/texture.hpp +++ b/yg/texture.hpp @@ -89,7 +89,7 @@ namespace yg inline m2::PointU const GetDimensions(string const & fileName) { - gil::point2 size = gil::lodepng_read_dimensions(GetPlatform().ResourcesDir() + fileName); + gil::point2 size = gil::lodepng_read_dimensions(GetPlatform().ReadPathForFile(fileName)); return m2::PointU(size.x, size.y); } @@ -119,7 +119,7 @@ namespace yg Texture(string const & fileName) : BaseTexture(GetDimensions(fileName)) { typename Traits::image_t image(width(), height()); - gil::lodepng_read_and_convert_image((GetPlatform().ResourcesDir() + fileName).c_str(), image, typename Traits::color_converter()); + gil::lodepng_read_and_convert_image(GetPlatform().ReadPathForFile(fileName), image, typename Traits::color_converter()); upload(&gil::view(image)(0, 0)); }