Don't scale the marching ants pattern

This commit is contained in:
David Capello 2020-05-19 09:27:24 -03:00
parent 3d2013b33c
commit 39f2269ea5
2 changed files with 8 additions and 5 deletions

2
laf

@ -1 +1 @@
Subproject commit 8032d186a751326d0fc6436d69570ad4a3c4aaf1
Subproject commit e45419fc887ea07b4cb6ae3700bd6caf82c8f47b

View File

@ -950,10 +950,13 @@ void Editor::drawMask(Graphics* g)
os::Paint paint;
paint.style(os::Paint::Stroke);
paint.color(gfx::rgba(0, 0, 0));
g->setMatrix(Matrix::MakeTrans(pt.x, pt.y));
g->concat(m_proj.scaleMatrix());
g->drawPath(segs.path(), paint);
g->resetMatrix();
// We translate the path instead of applying a matrix to the
// ui::Graphics so the "checked" pattern is not scaled too.
gfx::Path path;
segs.path().transform(m_proj.scaleMatrix(), &path);
path.offset(pt.x, pt.y);
g->drawPath(path, paint);
}
void Editor::drawMaskSafe()