[aseprite] 56/64: Fix status bar values when we move pixels
Tobias Hansen
thansen at moszumanska.debian.org
Tue Jun 21 14:43:05 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 34b8be3114f09a3368e4af6596a6a220103a6c92
Author: David Capello <davidcapello at gmail.com>
Date: Fri May 27 13:22:25 2016 -0300
Fix status bar values when we move pixels
---
src/app/ui/editor/moving_pixels_state.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/app/ui/editor/moving_pixels_state.cpp b/src/app/ui/editor/moving_pixels_state.cpp
index ca40e13..6ae308e 100644
--- a/src/app/ui/editor/moving_pixels_state.cpp
+++ b/src/app/ui/editor/moving_pixels_state.cpp
@@ -436,9 +436,12 @@ bool MovingPixelsState::onUpdateStatusBar(Editor* editor)
StatusBar::instance()->setStatusText
(100, ":pos: %d %d :size: %3d %3d :selsize: %d %d [%.02f%% %.02f%%] :angle: %.1f",
- transform.bounds().x, transform.bounds().y,
- imageSize.w, imageSize.h,
- transform.bounds().w, transform.bounds().h,
+ int(transform.bounds().x),
+ int(transform.bounds().y),
+ imageSize.w,
+ imageSize.h,
+ int(transform.bounds().w),
+ int(transform.bounds().h),
(double)transform.bounds().w*100.0/imageSize.w,
(double)transform.bounds().h*100.0/imageSize.h,
180.0 * transform.angle() / PI);
--
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