summaryrefslogtreecommitdiff
path: root/src/FbTk/TextButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r--src/FbTk/TextButton.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 4b2d45e..de8fad0 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextButton.cc,v 1.3 2003/09/14 09:50:01 fluxgen Exp $ 22// $Id: TextButton.cc,v 1.4 2003/10/31 20:02:49 rathnor Exp $
23 23
24#include "TextButton.hh" 24#include "TextButton.hh"
25#include "Font.hh" 25#include "Font.hh"
@@ -138,7 +138,7 @@ void TextButton::drawText(int x_offset, int y_offset) {
138 textlen); // return new text len 138 textlen); // return new text len
139 139
140 // center text by default 140 // center text by default
141 int center_pos = height()/2 + font().ascent()/2; 141 int center_pos = height()/2 + font().ascent()/2 - 1;
142 142
143 font().drawText(backgroundPixmap() == ParentRelative ? window() : m_buffer.drawable(), 143 font().drawText(backgroundPixmap() == ParentRelative ? window() : m_buffer.drawable(),
144 screenNumber(), 144 screenNumber(),