aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_response_box.cpp
diff options
context:
space:
mode:
authorTobia Tesan2013-09-20 17:39:32 +0200
committerTobia Tesan2013-09-21 23:22:37 +0200
commit1869481767b205b3475d9d79e69f69c8cc184b02 (patch)
treea45511c00fc0b1f3c780911cabae6c208e07b622 /engines/wintermute/ad/ad_response_box.cpp
parent59f4a9e7ac519405a728b9d9a448114c05fe4776 (diff)
downloadscummvm-rg350-1869481767b205b3475d9d79e69f69c8cc184b02.tar.gz
scummvm-rg350-1869481767b205b3475d9d79e69f69c8cc184b02.tar.bz2
scummvm-rg350-1869481767b205b3475d9d79e69f69c8cc184b02.zip
WINTERMUTE: Setters/getters for UIButton
Diffstat (limited to 'engines/wintermute/ad/ad_response_box.cpp')
-rw-r--r--engines/wintermute/ad/ad_response_box.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wintermute/ad/ad_response_box.cpp b/engines/wintermute/ad/ad_response_box.cpp
index f9680e99df..229ba8152b 100644
--- a/engines/wintermute/ad/ad_response_box.cpp
+++ b/engines/wintermute/ad/ad_response_box.cpp
@@ -125,8 +125,8 @@ bool AdResponseBox::invalidateButtons() {
_respButtons[i]->putFont(nullptr);
_respButtons[i]->setText("");
_respButtons[i]->_cursor = nullptr;
- _respButtons[i]->_fontHover = nullptr;
- _respButtons[i]->_fontPress = nullptr;
+ _respButtons[i]->putFontHover(nullptr);
+ _respButtons[i]->putFontPress(nullptr);
}
return STATUS_OK;
}
@@ -169,12 +169,12 @@ bool AdResponseBox::createButtons() {
} else {
btn->putFont(_font);
}
- btn->_fontHover = (_fontHover == nullptr) ? _gameRef->getSystemFont() : _fontHover;
- btn->_fontPress = btn->_fontHover;
+ btn->putFontHover((_fontHover == nullptr) ? _gameRef->getSystemFont() : _fontHover);
+ btn->putFontPress(btn->getFontHover());
btn->_align = _align;
if (_gameRef->_touchInterface) {
- btn->_fontHover = btn->getFont();
+ btn->putFontHover(btn->getFont());
}