From 745497dea4cc3d0698d48338c4c7f06eac6769c3 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 1 Oct 2003 15:00:26 +0000 Subject: 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 --- gui/PopUpWidget.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gui/PopUpWidget.cpp') 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); -- cgit v1.2.3