diff --git a/drape/drape_tests/drape_tests.pro b/drape/drape_tests/drape_tests.pro index 6cbff61f60..aba0486301 100644 --- a/drape/drape_tests/drape_tests.pro +++ b/drape/drape_tests/drape_tests.pro @@ -39,9 +39,9 @@ SOURCES += \ pointers_tests.cpp \ font_texture_tests.cpp \ bingind_info_tests.cpp \ - stipple_pen_tests.cpp + stipple_pen_tests.cpp \ HEADERS += \ glmock_functions.hpp \ enum_shaders.hpp \ - memory_comparer.hpp + memory_comparer.hpp \ diff --git a/drape/stipple_pen_resource.cpp b/drape/stipple_pen_resource.cpp index 138502896d..9405241d52 100644 --- a/drape/stipple_pen_resource.cpp +++ b/drape/stipple_pen_resource.cpp @@ -19,8 +19,7 @@ StipplePenPacker::StipplePenPacker(m2::PointU const & canvasSize) { // canvasSize.x - 1 = we reserve 1 pixel border on left // to reduce problems with bilinear filtration on GPU - // MAX_STIPPLE_PEN_LENGTH + 1 = we reserve 1 pixel empty space after pen resource - // pen in last column reserve 1 pixel on right size of canvas + // we devide on MAX_STIPPLE_PEN_LENGTH because this length considers 1 pixel border on right side uint32_t columnCount = floor((canvasSize.x - 1) / MAX_STIPPLE_PEN_LENGTH); m_columns.resize(columnCount, 0); }