This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit 910612101a94b1d5d2ceeefb8d94cf9c7e6132a8 Author: David Capello <[email protected]> Date: Wed Dec 30 17:30:20 2015 -0300 Fix slow performance pressing Alt or Ctrl key on Editor in Alleg4/Win port --- src/ui/manager.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ui/manager.cpp b/src/ui/manager.cpp index b113758..c57e0d7 100644 --- a/src/ui/manager.cpp +++ b/src/ui/manager.cpp @@ -272,6 +272,8 @@ static MouseButtons mouse_buttons_from_she_to_ui(const she::Event& sheEvent) void Manager::generateMessagesFromSheEvents() { + she::Event lastMouseMoveEvent; + // Events from "she" layer. she::Event sheEvent; for (;;) { @@ -338,6 +340,8 @@ void Manager::generateMessagesFromSheEvents() handleMouseMove(sheEvent.position(), m_mouseButtons, sheEvent.modifiers()); + + lastMouseMoveEvent = sheEvent; break; } @@ -377,6 +381,12 @@ void Manager::generateMessagesFromSheEvents() } } } + + // Generate just one kSetCursorMessage for the last mouse position + if (lastMouseMoveEvent.type() != she::Event::None) { + generateSetCursorMessage(lastMouseMoveEvent.position(), + lastMouseMoveEvent.modifiers()); + } } void Manager::handleMouseMove(const gfx::Point& mousePos, @@ -409,8 +419,6 @@ void Manager::handleMouseMove(const gfx::Point& mousePos, newMouseMessage( kMouseMoveMessage, dst, mousePos, mouseButtons, modifiers)); - - generateSetCursorMessage(mousePos, modifiers); } void Manager::handleMouseDown(const gfx::Point& mousePos, -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

