mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Timeline: Fix bug painting marching ants ouside the cel bounds
This commit is contained in:
parent
147f36077b
commit
b79512d3b4
@ -1686,11 +1686,14 @@ void Timeline::drawClipboardRange(ui::Graphics* g)
|
||||
if (!m_clipboard_timer.isRunning())
|
||||
m_clipboard_timer.start();
|
||||
|
||||
CheckedDrawMode checked(g, m_offset_count,
|
||||
gfx::rgba(0, 0, 0, 255),
|
||||
gfx::rgba(255, 255, 255, 255));
|
||||
g->drawRect(gfx::rgba(0, 0, 0),
|
||||
getRangeBounds(clipboard_range));
|
||||
IntersectClip clip(g, getCelsBounds());
|
||||
if (clip) {
|
||||
CheckedDrawMode checked(g, m_offset_count,
|
||||
gfx::rgba(0, 0, 0, 255),
|
||||
gfx::rgba(255, 255, 255, 255));
|
||||
g->drawRect(gfx::rgba(0, 0, 0),
|
||||
getRangeBounds(clipboard_range));
|
||||
}
|
||||
}
|
||||
|
||||
void Timeline::drawTop(ui::Graphics* g)
|
||||
|
Loading…
Reference in New Issue
Block a user