diff options
author | Johannes Schickel | 2011-12-26 21:19:29 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 21:34:22 +0100 |
commit | 9b51b138db7ccc8dbc55ca200f1a4aff688f6d89 (patch) | |
tree | b72b3dd34a186bc7ec128d82d975715fe1c4c8c4 /engines/kyra/gui_v1.cpp | |
parent | 1ba4f0a1a8965ee141987693770d2bcd3b74c292 (diff) | |
download | scummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.tar.gz scummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.tar.bz2 scummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.zip |
KYRA: Some formatting fixes.
Diffstat (limited to 'engines/kyra/gui_v1.cpp')
-rw-r--r-- | engines/kyra/gui_v1.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/gui_v1.cpp b/engines/kyra/gui_v1.cpp index ab441878a6..f3459ddfe3 100644 --- a/engines/kyra/gui_v1.cpp +++ b/engines/kyra/gui_v1.cpp @@ -224,7 +224,7 @@ void GUI_v1::processHighlights(Menu &menu) { y2 = y1 + menu.item[i].height; if (mouseX > x1 && mouseX < x2 && - mouseY > y1 && mouseY < y2) { + mouseY > y1 && mouseY < y2) { if (menu.highlightedItem != i || _vm->game() == GI_LOL) { if (_vm->game() != GI_LOL) { @@ -584,15 +584,15 @@ void MainMenu::drawBox(int x, int y, int w, int h, int fill) { --w; --h; if (fill) - _screen->fillRect(x, y, x+w, y+h, _static.colorTable[0]); + _screen->fillRect(x, y, x + w, y + h, _static.colorTable[0]); - _screen->drawClippedLine(x, y+h, x+w, y+h, _static.colorTable[1]); - _screen->drawClippedLine(x+w, y, x+w, y+h, _static.colorTable[1]); - _screen->drawClippedLine(x, y, x+w, y, _static.colorTable[2]); - _screen->drawClippedLine(x, y, x, y+h, _static.colorTable[2]); + _screen->drawClippedLine(x, y + h, x + w, y + h, _static.colorTable[1]); + _screen->drawClippedLine(x + w, y, x + w, y + h, _static.colorTable[1]); + _screen->drawClippedLine(x, y, x + w, y, _static.colorTable[2]); + _screen->drawClippedLine(x, y, x, y + h, _static.colorTable[2]); - _screen->setPagePixel(_screen->_curPage, x, y+h, _static.colorTable[3]); - _screen->setPagePixel(_screen->_curPage, x+w, y, _static.colorTable[3]); + _screen->setPagePixel(_screen->_curPage, x, y + h, _static.colorTable[3]); + _screen->setPagePixel(_screen->_curPage, x + w, y, _static.colorTable[3]); } void MainMenu::printString(const char *format, int x, int y, int col1, int col2, int flags, ...) { |