diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-05 07:40:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-05 07:40:56 +0000 |
| commit | 5072931be0ff28cd9447926d50fe5ea202e2c370 (patch) | |
| tree | 71feea4e53ca16c1801127424e20c76f54beb6a1 /otk/focuslabel.cc | |
| parent | 871e777e55fa76938da991b9b1a72605ba78bad4 (diff) | |
use bevel width on the top/bottom too
Diffstat (limited to 'otk/focuslabel.cc')
| -rw-r--r-- | otk/focuslabel.cc | 4 |
1 files changed, 2 insertions, 2 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); } } |
