[aseprite] 60/308: Repaint animated sprite only when frame changed

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:44:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit b6afb1ae2a6e31b28331cc279de796b686df9d14
Author: Ying Ruei Liang (KK) <thumbd03803 at gmail.com>
Date:   Sun Dec 6 19:21:41 2015 +0800

    Repaint animated sprite only when frame changed
---
 src/app/ui/editor/play_state.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/ui/editor/play_state.cpp b/src/app/ui/editor/play_state.cpp
index d16c6cd..d2ad40f 100644
--- a/src/app/ui/editor/play_state.cpp
+++ b/src/app/ui/editor/play_state.cpp
@@ -141,10 +141,10 @@ void PlayState::onPlaybackTick()
 
     m_editor->setFrame(frame);
     m_nextFrameTime += getNextFrameTime();
+    m_editor->invalidate();
   }
 
   m_curFrameTick = ui::clock();
-  m_editor->invalidate();
 }
 
 // Before executing any command, we stop the animation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list