maximizing stipple pen period

This commit is contained in:
rachytski 2011-03-01 00:20:01 +02:00 committed by Alex Zolotarev
parent 6f3fdb82df
commit ba54208a43

View file

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