diff options
author | Max Horn | 2007-09-18 20:16:33 +0000 |
---|---|---|
committer | Max Horn | 2007-09-18 20:16:33 +0000 |
commit | 3abc11611e1d1d93f1cf794df28879de3571bd01 (patch) | |
tree | e1ac8a925d1388f8df010a114d7bed471fc9fe3b /engines/agi | |
parent | c3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff) | |
download | scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2 scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip |
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/op_cmd.cpp | 2 | ||||
-rw-r--r-- | engines/agi/picture.cpp | 2 | ||||
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 588ee1dd30..5097b43c08 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -994,7 +994,7 @@ cmd(version) { /* insert our version into the other version */ len = strlen(verMsg); gap = r - q; - if(gap < 0) + if (gap < 0) gap = 0; else gap = (gap - len) / 2; diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp index 006348f433..7df391104d 100644 --- a/engines/agi/picture.cpp +++ b/engines/agi/picture.cpp @@ -99,7 +99,7 @@ void PictureMgr::drawLine(int x1, int y1, int x2, int y2) { int i, x, y, deltaX, deltaY, stepX, stepY, errorX, errorY, detdelta; /* CM: Do clipping */ -#define clip(x, y) if((x)>=(y)) (x)=(y) +#define clip(x, y) if ((x)>=(y)) (x)=(y) clip(x1, _width - 1); clip(x2, _width - 1); clip(y1, _height - 1); diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index 8d60f0861e..28ccec294e 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -664,14 +664,14 @@ void Winnie::incMenuSel(int *iSel, int fCanSel[]) { do { *iSel += 1; if (*iSel > IDI_WTP_SEL_DROP) *iSel = IDI_WTP_SEL_OPT_1; - } while(!fCanSel[*iSel]); + } while (!fCanSel[*iSel]); } void Winnie::decMenuSel(int *iSel, int fCanSel[]) { do { *iSel -= 1; if (*iSel < IDI_WTP_SEL_OPT_1) *iSel = IDI_WTP_SEL_DROP; - } while(!fCanSel[*iSel]); + } while (!fCanSel[*iSel]); } void Winnie::getMenuMouseSel(int *iSel, int fCanSel[], int x, int y) { @@ -1046,7 +1046,7 @@ bool Winnie::getSelOkBack() { } void Winnie::clrMenuSel(int *iSel, int fCanSel[]) { *iSel = IDI_WTP_SEL_OPT_1; - while(!fCanSel[*iSel]) { + while (!fCanSel[*iSel]) { *iSel += 1; } } |