From 5072931be0ff28cd9447926d50fe5ea202e2c370 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 5 Feb 2003 07:40:56 +0000 Subject: [PATCH] use bevel width on the top/bottom too --- otk/focuslabel.cc | 4 ++-- otk/label.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index f45ee71d..846d035e 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -38,7 +38,7 @@ void FocusLabel::fitString(const std::string &str) void FocusLabel::fitSize(int w, int h) { unsigned int sidemargin = _bevel_width * 2; - resize(w + sidemargin * 2, h); + resize(w + sidemargin * 2, h + _bevel_width * 2); } void FocusLabel::update() @@ -104,7 +104,7 @@ void FocusLabel::renderForeground() } display->renderControl(_screen)-> - drawString(*_surface, *ft, x, 0, *text_color, t); + drawString(*_surface, *ft, x, _bevel_width, *text_color, t); } } diff --git a/otk/label.cc b/otk/label.cc index 824cc81d..16bfd5f4 100644 --- a/otk/label.cc +++ b/otk/label.cc @@ -34,7 +34,7 @@ void Label::fitString(const std::string &str) void Label::fitSize(int w, int h) { unsigned int sidemargin = _bevel_width * 2; - resize(w + sidemargin * 2, h); + resize(w + sidemargin * 2, h + _bevel_width * 2); } void Label::update() @@ -98,7 +98,7 @@ void Label::renderForeground(void) } display->renderControl(_screen)-> - drawString(*_surface, *ft, x, 0, *style()->textUnfocusColor(), t); + drawString(*_surface, *ft, x, _bevel_width, *style()->textUnfocusColor(), t); } } -- 2.39.2