From d8d9b42777ace234f3471918e1210062578f8188 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 20 Jan 2003 06:11:12 +0000 Subject: widegt using new render system --- otk/button.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'otk/button.cc') diff --git a/otk/button.cc b/otk/button.cc index bc994b2f..04906fe5 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -22,11 +22,12 @@ Button::~Button() void Button::setStyle(Style *style) { FocusLabel::setStyle(style); - - setTexture(style->getButtonFocus()); - setUnfocusTexture(style->getButtonUnfocus()); - _pressed_focus_tx = style->getButtonPressedFocus(); - _pressed_unfocus_tx = style->getButtonPressedUnfocus(); + + // XXX: do this again + //setTexture(style->getButtonFocus()); + //setUnfocusTexture(style->getButtonUnfocus()); + //_pressed_focus_tx = style->getButtonPressedFocus(); + //_pressed_unfocus_tx = style->getButtonPressedUnfocus(); } @@ -51,13 +52,13 @@ void Button::release(unsigned int mouse_button) _pressed = false; } -void Button::setTexture(Texture *texture) +void Button::setTexture(RenderTexture *texture) { FocusWidget::setTexture(texture); _unpr_focus_tx = texture; } -void Button::setUnfocusTexture(Texture *texture) +void Button::setUnfocusTexture(RenderTexture *texture) { FocusWidget::setUnfocusTexture(texture); _unpr_unfocus_tx = texture; -- cgit v1.2.3