mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-17 16:10:05 +00:00
Fix brush preview flicker
This commit is contained in:
parent
1b217f257c
commit
43a3ee8bce
@ -1387,9 +1387,9 @@ bool Editor::isInsideSelection()
|
|||||||
void Editor::setZoomAndCenterInMouse(Zoom zoom,
|
void Editor::setZoomAndCenterInMouse(Zoom zoom,
|
||||||
const gfx::Point& mousePos, ZoomBehavior zoomBehavior)
|
const gfx::Point& mousePos, ZoomBehavior zoomBehavior)
|
||||||
{
|
{
|
||||||
|
HideBrushPreview hide(m_brushPreview);
|
||||||
View* view = View::getView(this);
|
View* view = View::getView(this);
|
||||||
Rect vp = view->getViewportBounds();
|
Rect vp = view->getViewportBounds();
|
||||||
HideBrushPreview hide(m_brushPreview);
|
|
||||||
|
|
||||||
gfx::Point screenPos;
|
gfx::Point screenPos;
|
||||||
gfx::Point spritePos;
|
gfx::Point spritePos;
|
||||||
@ -1428,6 +1428,8 @@ void Editor::setZoomAndCenterInMouse(Zoom zoom,
|
|||||||
updateEditor();
|
updateEditor();
|
||||||
setEditorScroll(scrollPos, blitValidRegion);
|
setEditorScroll(scrollPos, blitValidRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flushRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::pasteImage(const Image* image, const Mask* mask)
|
void Editor::pasteImage(const Image* image, const Mask* mask)
|
||||||
|
Loading…
Reference in New Issue
Block a user