From cb731dc273985a89079691558f818f580ff7aba5 Mon Sep 17 00:00:00 2001 From: rachytski Date: Sat, 9 Jun 2012 00:18:47 +0400 Subject: [PATCH] fixed bug with "number of periods on the texture" calculation. --- yg/pen_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yg/pen_info.cpp b/yg/pen_info.cpp index a375ccc0b8..e46d02f249 100644 --- a/yg/pen_info.cpp +++ b/yg/pen_info.cpp @@ -71,7 +71,7 @@ namespace yg curLen += tmpV[i++]; } - int periods = max(int(256 / length), 1); + int periods = max(int((256 - 4) / length), 1); m_pat.reserve(periods * vec.size()); for (int i = 0; i < periods; ++i) copy(vec.begin(), vec.end(), back_inserter(m_pat));