The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix text are height

These changes was commited to the Birdfont repository Tue, 31 Mar 2015 17:02:44 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 17:02:44 +0000 (19:02 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 17:02:44 +0000 (19:02 +0200)
commit ce0d6d5eafbf4c7e5c75d7145a501d14fecc6fb6
tree e6387d83e86fde380aca84d36a332bbd329694a8
parent b842c976c987135034810041bee84b58340c2574
Fix text are height

libbirdfont/Renderer/TextArea.vala
--- a/libbirdfont/Renderer/TextArea.vala +++ b/libbirdfont/Renderer/TextArea.vala @@ -992,7 +992,7 @@ cr.save (); cr.set_line_width (1); Theme.color (cr, "Text Area Background"); - draw_rounded_rectangle (cr, x, y, this.width, this.height, padding); + draw_rounded_rectangle (cr, x, y, this.width, this.height - padding, padding); cr.fill (); cr.restore (); @@ -1000,7 +1000,7 @@ cr.save (); cr.set_line_width (1); Theme.color (cr, "Foreground 1"); - draw_rounded_rectangle (cr, x, y, this.width, this.height, padding); + draw_rounded_rectangle (cr, x, y, this.width, this.height - padding, padding); cr.stroke (); cr.restore (); }