Fix brush preview flicker

This commit is contained in:
David Capello 2015-07-31 16:18:53 -03:00
parent 1b217f257c
commit 43a3ee8bce

View File

@ -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)