X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.cc;h=16bfd5f47cf9cf49d323b2cac2ee6d4a0d655497;hb=d2df40965bbf042e062b65d6adc12bc158d503eb;hp=824cc81d938cf9aca6b2b6f35132d52163c61249;hpb=871e777e55fa76938da991b9b1a72605ba78bad4;p=chaz%2Fopenbox 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); } }