mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Minor change in Editor::drawMaskSafe
This commit is contained in:
parent
eb7016bede
commit
72036f417c
@ -594,18 +594,18 @@ void Editor::drawMaskSafe()
|
||||
|
||||
Region region;
|
||||
getDrawableRegion(region, kCutTopWindows);
|
||||
region.offset(-getBounds().getOrigin());
|
||||
|
||||
if (thick)
|
||||
editor_clean_cursor();
|
||||
else
|
||||
jmouse_hide();
|
||||
|
||||
gfx::Point offset = -getBounds().getOrigin();
|
||||
GraphicsPtr g = getGraphics(getClientBounds());
|
||||
|
||||
for (Region::const_iterator it=region.begin(), end=region.end();
|
||||
it != end; ++it) {
|
||||
IntersectClip clip(g, gfx::Rect(*it).offset(offset));
|
||||
IntersectClip clip(g, gfx::Rect(*it));
|
||||
if (clip)
|
||||
drawMask(g);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user