[aseprite] 16/308: Fix shades field preferred size when UI scaling > 100%
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:44:47 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 25a331c43aca3a10d7f2dd33422afc446db6b9af
Author: David Capello <davidcapello at gmail.com>
Date: Mon Nov 23 15:05:35 2015 -0300
Fix shades field preferred size when UI scaling > 100%
---
src/app/ui/context_bar.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp
index 9226de1..3844438 100644
--- a/src/app/ui/context_bar.cpp
+++ b/src/app/ui/context_bar.cpp
@@ -506,9 +506,8 @@ private:
void onPreferredSize(PreferredSizeEvent& ev) override {
int size = getColors().size();
-
if (size < 2)
- ev.setPreferredSize(Size(16+getTextWidth(), 18)*guiscale());
+ ev.setPreferredSize(Size(16*guiscale()+getTextWidth(), 18*guiscale()));
else
ev.setPreferredSize(Size(6+12*size, 18)*guiscale());
}
--
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