mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-07 10:21:30 +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;
|
os::Paint paint;
|
||||||
paint.style(os::Paint::Stroke);
|
paint.style(os::Paint::Stroke);
|
||||||
paint.color(gfx::rgba(0, 0, 0));
|
paint.color(gfx::rgba(0, 0, 0));
|
||||||
g->setMatrix(Matrix::MakeTrans(pt.x, pt.y));
|
|
||||||
g->concat(m_proj.scaleMatrix());
|
// We translate the path instead of applying a matrix to the
|
||||||
g->drawPath(segs.path(), paint);
|
// ui::Graphics so the "checked" pattern is not scaled too.
|
||||||
g->resetMatrix();
|
gfx::Path path;
|
||||||
|
segs.path().transform(m_proj.scaleMatrix(), &path);
|
||||||
|
path.offset(pt.x, pt.y);
|
||||||
|
g->drawPath(path, paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::drawMaskSafe()
|
void Editor::drawMaskSafe()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user