aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/menu.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-05-06 09:31:45 +0000
committerNicola Mettifogo2007-05-06 09:31:45 +0000
commit79229cafabbf7f61c9a1043ffac8c5aee58a73d2 (patch)
tree51567a950b96171dbe23fcaecdb75f4b5fb310db /engines/parallaction/menu.cpp
parent76c98a03af1bb9f5c175245d45158c79ea34a713 (diff)
downloadscummvm-rg350-79229cafabbf7f61c9a1043ffac8c5aee58a73d2.tar.gz
scummvm-rg350-79229cafabbf7f61c9a1043ffac8c5aee58a73d2.tar.bz2
scummvm-rg350-79229cafabbf7f61c9a1043ffac8c5aee58a73d2.zip
Some cheap cleanup.
svn-id: r26757
Diffstat (limited to 'engines/parallaction/menu.cpp')
-rw-r--r--engines/parallaction/menu.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/engines/parallaction/menu.cpp b/engines/parallaction/menu.cpp
index 84f7570b94..5f804d59f4 100644
--- a/engines/parallaction/menu.cpp
+++ b/engines/parallaction/menu.cpp
@@ -148,17 +148,10 @@ void Menu::newGame() {
_vm->_gfx->setPalette(_vm->_gfx->_palette);
_vm->_gfx->swapBuffers();
- uint16 _ax = (SCREEN_WIDTH - _vm->_gfx->getStringWidth(v14[0])) / 2;
- _vm->_gfx->displayString(_ax, 50, v14[0]);
-
- _ax = (SCREEN_WIDTH - _vm->_gfx->getStringWidth(v14[1])) / 2;
- _vm->_gfx->displayString(_ax, 70, v14[1]);
-
- _ax = (SCREEN_WIDTH - _vm->_gfx->getStringWidth(v14[2])) / 2;
- _vm->_gfx->displayString(_ax, 100, v14[2]);
-
- _ax = (SCREEN_WIDTH - _vm->_gfx->getStringWidth(v14[3])) / 2;
- _vm->_gfx->displayString(_ax, 120, v14[3]);
+ _vm->_gfx->displayCenteredString(50, v14[0]);
+ _vm->_gfx->displayCenteredString(70, v14[1]);
+ _vm->_gfx->displayCenteredString(100, v14[2]);
+ _vm->_gfx->displayCenteredString(120, v14[3]);
_vm->_gfx->updateScreen();
_vm->_gfx->copyScreen(Gfx::kBitFront, Gfx::kBitBack);