From 033e9843bcec8340c9e657fe0f0519f86075424b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 22 Jan 2003 22:46:16 +0000 Subject: otk using new render shit.. supposedly --- otk/button.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'otk/button.cc') diff --git a/otk/button.cc b/otk/button.cc index 04906fe5..e7340d1b 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -19,15 +19,14 @@ Button::~Button() } -void Button::setStyle(Style *style) +void Button::setStyle(RenderStyle *style) { FocusLabel::setStyle(style); - // XXX: do this again - //setTexture(style->getButtonFocus()); - //setUnfocusTexture(style->getButtonUnfocus()); - //_pressed_focus_tx = style->getButtonPressedFocus(); - //_pressed_unfocus_tx = style->getButtonPressedUnfocus(); + setTexture(style->buttonUnpressFocusBackground()); + setUnfocusTexture(style->buttonUnpressUnfocusBackground()); + _pressed_focus_tx = style->buttonPressFocusBackground(); + _pressed_unfocus_tx = style->buttonPressUnfocusBackground(); } -- cgit v1.2.3