mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +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);
|
||||
gfx::Rect bounds = m_zoom.apply(seg.bounds());
|
||||
|
||||
if (!seg.open()) {
|
||||
if (seg.vertical()) --bounds.x;
|
||||
else --bounds.y;
|
||||
if (m_zoom.scale() >= 1.0) {
|
||||
if (!seg.open()) {
|
||||
if (seg.vertical()) --bounds.x;
|
||||
else --bounds.y;
|
||||
}
|
||||
}
|
||||
|
||||
// The color doesn't matter, we are using CheckedDrawMode
|
||||
|
Loading…
x
Reference in New Issue
Block a user