aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vmenu.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-13 13:07:45 +0200
committerStrangerke2011-06-13 13:07:45 +0200
commit64f2ccca9bf4ba7fef87def8bee5209118d78ce8 (patch)
tree7c26844d9ec915de9e61df8a6d2c9d932d31596d /engines/cge/vmenu.cpp
parentffc2aa4e4f41aa679d773ccafdec87bf8d7b5e85 (diff)
downloadscummvm-rg350-64f2ccca9bf4ba7fef87def8bee5209118d78ce8.tar.gz
scummvm-rg350-64f2ccca9bf4ba7fef87def8bee5209118d78ce8.tar.bz2
scummvm-rg350-64f2ccca9bf4ba7fef87def8bee5209118d78ce8.zip
CGE: Cleanup: remove trailing spaces
Diffstat (limited to 'engines/cge/vmenu.cpp')
-rw-r--r--engines/cge/vmenu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/cge/vmenu.cpp b/engines/cge/vmenu.cpp
index a8da163b33..4287c12d63 100644
--- a/engines/cge/vmenu.cpp
+++ b/engines/cge/vmenu.cpp
@@ -83,7 +83,7 @@ char *VMGather(CHOICE *list) {
if (vmgt) {
*vmgt = '\0';
for (cp = list; cp->Text; cp ++) {
- if (*vmgt)
+ if (*vmgt)
strcat(vmgt, "|");
strcat(vmgt, cp->Text);
++ h;
@@ -104,13 +104,13 @@ VMENU::VMENU(CHOICE *list, int x, int y)
Addr = this;
delete[] vmgt;
Items = 0;
- for (cp = list; cp->Text; cp ++)
+ for (cp = list; cp->Text; cp ++)
++Items;
Flags.BDel = true;
Flags.Kill = true;
- if (x < 0 || y < 0)
+ if (x < 0 || y < 0)
Center();
- else
+ else
Goto(x - W / 2, y - (TEXT_VM + FONT_HIG / 2));
VGA::ShowQ.Insert(this, VGA::ShowQ.Last());
Bar = new MENU_BAR(W - 2 * TEXT_HM);
@@ -136,9 +136,9 @@ void VMENU::Touch(uint16 mask, int x, int y) {
//if
if (y >= 0) {
n = y / h;
- if (n < Items)
+ if (n < Items)
ok = (x >= TEXT_HM && x < W - TEXT_HM/* && y % h < FONT_HIG*/);
- else
+ else
n = Items - 1;
}