mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Don't scale the marching ants pattern
This commit is contained in:
parent
3d2013b33c
commit
39f2269ea5
2
laf
2
laf
@ -1 +1 @@
|
||||
Subproject commit 8032d186a751326d0fc6436d69570ad4a3c4aaf1
|
||||
Subproject commit e45419fc887ea07b4cb6ae3700bd6caf82c8f47b
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user