Fix cursor flickering using simple crosshair with 400% scaling

This commit is contained in:
David Capello 2016-09-14 14:12:24 -03:00
parent 6377b550e3
commit a30b7c5217
4 changed files with 5 additions and 5 deletions

View File

@ -1663,7 +1663,10 @@ void Editor::showMouseCursor(CursorType cursorType)
void Editor::showBrushPreview(const gfx::Point& screenPos)
{
ui::set_mouse_cursor(kNoCursor);
if (Preferences::instance().cursor.paintingCursorType() !=
app::gen::PaintingCursorType::SIMPLE_CROSSHAIR)
ui::set_mouse_cursor(kNoCursor);
m_brushPreview.show(screenPos);
}

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2015 David Capello
// Copyright (C) 2001-2016 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
@ -46,7 +46,6 @@ bool NavigateState::onMouseUp(Editor* editor, MouseMessage* msg)
bool NavigateState::onMouseMove(Editor* editor, MouseMessage* msg)
{
editor->showBrushPreview(msg->position());
editor->updateStatusBar();
return true;
}

View File

@ -125,7 +125,6 @@ bool PlayState::onMouseUp(Editor* editor, MouseMessage* msg)
bool PlayState::onMouseMove(Editor* editor, MouseMessage* msg)
{
editor->showBrushPreview(msg->position());
editor->updateStatusBar();
return true;
}

View File

@ -340,7 +340,6 @@ bool StandbyState::onMouseMove(Editor* editor, MouseMessage* msg)
}
}
editor->showBrushPreview(msg->position());
editor->updateStatusBar();
return true;
}