[aseprite] 67/196: Minor fix to show text caret on ui::Entry when it's at the end

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:02 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 8de92df6ccc6434f49352be8e886ca1ef82a5727
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Mar 14 16:52:44 2016 -0300

    Minor fix to show text caret on ui::Entry when it's at the end
---
 src/app/ui/skin/skin_theme.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/ui/skin/skin_theme.cpp b/src/app/ui/skin/skin_theme.cpp
index fb1f8fc..52e3295 100644
--- a/src/app/ui/skin/skin_theme.cpp
+++ b/src/app/ui/skin/skin_theme.cpp
@@ -958,7 +958,7 @@ void SkinTheme::paintEntry(PaintEvent& ev)
     }
 
     w = g->measureChar(ch).w;
-    if (x+w > bounds.x2()-widget->childSpacing()*guiscale())
+    if (x+w > bounds.x2())
       return;
 
     caret_x = x;

-- 
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