fine tuning maximum pen period.

This commit is contained in:
rachytski 2011-02-22 01:05:00 +02:00 committed by Alex Zolotarev
parent 2006a48a25
commit 6b62bd84d5

View file

@ -28,7 +28,7 @@ namespace yg
length += vec[i];
}
int periods = min(20, max(int(128 / length), 1));
int periods = min(20, max(int(64 / length), 1));
m_pat.reserve(periods * vec.size());
for (int i = 0; i < periods; ++i)
copy(vec.begin(), vec.end(), back_inserter(m_pat));