1
0
mirror of https://github.com/aseprite/aseprite.git synced 2025-04-02 13:20:12 +00:00

Fix bug painting selection edges when zoom < 100% (fix )

This commit is contained in:
David Capello 2016-03-24 18:24:32 -03:00
parent f696d895b4
commit 7934c975ca

@ -728,9 +728,11 @@ void Editor::drawMask(Graphics* g)
CheckedDrawMode checked(g, m_antsOffset); CheckedDrawMode checked(g, m_antsOffset);
gfx::Rect bounds = m_zoom.apply(seg.bounds()); gfx::Rect bounds = m_zoom.apply(seg.bounds());
if (!seg.open()) { if (m_zoom.scale() >= 1.0) {
if (seg.vertical()) --bounds.x; if (!seg.open()) {
else --bounds.y; if (seg.vertical()) --bounds.x;
else --bounds.y;
}
} }
// The color doesn't matter, we are using CheckedDrawMode // The color doesn't matter, we are using CheckedDrawMode