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 #905)
This commit is contained in:
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user