diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:59:24 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:59:24 +0000 |
| commit | ef231de58a738c83bf505e184fbafa9077f7452e (patch) | |
| tree | ffdfa60aea48424d925393efea433b1313b6e9a7 /otk/label.cc | |
| parent | ee9eaed6cd48db249711912133758679a029b5b1 (diff) | |
mad optimizations
Diffstat (limited to 'otk/label.cc')
| -rw-r--r-- | otk/label.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/otk/label.cc b/otk/label.cc index c56f91f8..16fa25a0 100644 --- a/otk/label.cc +++ b/otk/label.cc @@ -17,7 +17,7 @@ Label::Label(Widget *parent) _text(""), _justify_horz(RenderStyle::LeftTopJustify), _justify_vert(RenderStyle::LeftTopJustify), - _highlight(true) + _highlight(false) { styleChanged(*RenderStyle::style(screen())); } @@ -92,9 +92,10 @@ void Label::styleChanged(const RenderStyle &style) _texture = style.labelUnfocusBackground(); _forecolor = style.textUnfocusColor(); } - _font = style.labelFont(); - Widget::styleChanged(style); - calcDefaultSizes(); + if (_font != style.labelFont()) { + _font = style.labelFont(); + calcDefaultSizes(); + } } void Label::renderForeground(Surface &surface) |
