This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit 3369d902d9bde7d3f175f5a686315d6fec1b1bff Author: David Capello <[email protected]> Date: Mon May 9 17:49:52 2016 -0300 Show each undo step size when Aseprite is compiled in debug mode --- src/app/commands/cmd_undo_history.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/commands/cmd_undo_history.cpp b/src/app/commands/cmd_undo_history.cpp index 49c3358..c31fefa 100644 --- a/src/app/commands/cmd_undo_history.cpp +++ b/src/app/commands/cmd_undo_history.cpp @@ -1,5 +1,5 @@ // Aseprite -// Copyright (C) 2015 David Capello +// Copyright (C) 2015-2016 David Capello // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -20,6 +20,7 @@ #include "app/modules/gui.h" #include "app/modules/palettes.h" #include "base/bind.h" +#include "base/convert_to.h" #include "doc/context_observer.h" #include "doc/documents_observer.h" #include "doc/site.h" @@ -38,8 +39,12 @@ public: public: Item(const undo::UndoState* state) : ui::ListItem( - (state ? static_cast<Cmd*>(state->cmd())->label(): - std::string("Initial State"))), + (state ? + static_cast<Cmd*>(state->cmd())->label() +#if _DEBUG + + std::string(" ") + base::convert_to<std::string>(int(static_cast<Cmd*>(state->cmd())->memSize())) +#endif + : std::string("Initial State"))), m_state(state) { } const undo::UndoState* state() { return m_state; } -- 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

