summaryrefslogtreecommitdiff
path: root/otk/label.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 08:59:24 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 08:59:24 +0000
commitef231de58a738c83bf505e184fbafa9077f7452e (patch)
treeffdfa60aea48424d925393efea433b1313b6e9a7 /otk/label.cc
parentee9eaed6cd48db249711912133758679a029b5b1 (diff)
mad optimizations
Diffstat (limited to 'otk/label.cc')
-rw-r--r--otk/label.cc9
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)