diff options
author | Jonathan Gray | 2003-10-01 15:00:26 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-10-01 15:00:26 +0000 |
commit | 745497dea4cc3d0698d48338c4c7f06eac6769c3 (patch) | |
tree | dd65147964a5c1e67fdec4591ae6a8fe3cb477d0 /gui/PopUpWidget.cpp | |
parent | 9bab58179de824c5bfcbd4249dadc827a27e4d55 (diff) | |
download | scummvm-rg350-745497dea4cc3d0698d48338c4c7f06eac6769c3.tar.gz scummvm-rg350-745497dea4cc3d0698d48338c4c7f06eac6769c3.tar.bz2 scummvm-rg350-745497dea4cc3d0698d48338c4c7f06eac6769c3.zip |
vline -> vLine, hline-> hLine, slightly more in line with ScummVM naming style and more importantly doesn't conflict with the vline and hline Allegro functions
svn-id: r10520
Diffstat (limited to 'gui/PopUpWidget.cpp')
-rw-r--r-- | gui/PopUpWidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gui/PopUpWidget.cpp b/gui/PopUpWidget.cpp index ab08fc551c..bdff005297 100644 --- a/gui/PopUpWidget.cpp +++ b/gui/PopUpWidget.cpp @@ -109,10 +109,10 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY) void PopUpDialog::drawDialog() { // Draw the menu border - _gui->hline(_x, _y, _x+_w - 1, _gui->_color); - _gui->hline(_x, _y + _h - 1, _x + _w - 1, _gui->_shadowcolor); - _gui->vline(_x, _y, _y+_h - 1, _gui->_color); - _gui->vline(_x + _w - 1, _y, _y + _h - 1, _gui->_shadowcolor); + _gui->hLine(_x, _y, _x+_w - 1, _gui->_color); + _gui->hLine(_x, _y + _h - 1, _x + _w - 1, _gui->_shadowcolor); + _gui->vLine(_x, _y, _y+_h - 1, _gui->_color); + _gui->vLine(_x + _w - 1, _y, _y + _h - 1, _gui->_shadowcolor); // Draw the entries int count = _popUpBoss->_entries.size(); @@ -256,8 +256,8 @@ void PopUpDialog::drawMenuEntry(int entry, bool hilite) { _gui->fillRect(x, y, w, kLineHeight, hilite ? _gui->_textcolorhi : _gui->_bgcolor); if (name.size() == 0) { // Draw a seperator - _gui->hline(x, y + kLineHeight / 2, x + w - 1, _gui->_color); - _gui->hline(x + 1, y + 1 + kLineHeight / 2, x + w - 1, _gui->_shadowcolor); + _gui->hLine(x, y + kLineHeight / 2, x + w - 1, _gui->_color); + _gui->hLine(x + 1, y + 1 + kLineHeight / 2, x + w - 1, _gui->_shadowcolor); } else { _gui->drawString(name, x + 1, y + 2, w - 2, hilite ? _gui->_bgcolor : _gui->_textcolor); } @@ -319,10 +319,10 @@ void PopUpWidget::drawWidget(bool hilite) { // Draw a thin frame around us. // TODO - should look different than the EditTextWidget fram - gui->hline(_x, _y, _x + _w - 1, gui->_color); - gui->hline(_x, _y +_h-1, _x + _w - 1, gui->_shadowcolor); - gui->vline(_x, _y, _y+_h-1, gui->_color); - gui->vline(_x + _w - 1, _y, _y +_h - 1, gui->_shadowcolor); + gui->hLine(_x, _y, _x + _w - 1, gui->_color); + gui->hLine(_x, _y +_h-1, _x + _w - 1, gui->_shadowcolor); + gui->vLine(_x, _y, _y+_h-1, gui->_color); + gui->vLine(_x + _w - 1, _y, _y +_h - 1, gui->_shadowcolor); // Draw an arrow pointing down at the right end to signal this is a dropdown/popup gui->drawBitmap(up_down_arrows, _x+_w - 10, _y+2, !isEnabled() ? gui->_color : hilite ? gui->_textcolorhi : gui->_textcolor); |