use bevel width on the top/bottom too

This commit is contained in:
Dana Jansens 2003-02-05 07:40:56 +00:00
parent 871e777e55
commit 5072931be0
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}