mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Fix cursor flickering using simple crosshair with 400% scaling
This commit is contained in:
parent
6377b550e3
commit
a30b7c5217
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -340,7 +340,6 @@ bool StandbyState::onMouseMove(Editor* editor, MouseMessage* msg)
|
||||
}
|
||||
}
|
||||
|
||||
editor->showBrushPreview(msg->position());
|
||||
editor->updateStatusBar();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user