aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sprite.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-02 18:43:36 +0100
committerJohannes Schickel2016-02-02 20:15:18 +0100
commit6778175f6d2ba33565b15d3b94c8eea4b0ec3215 (patch)
tree9bd26262ae254315531c61cb055e0a238b79cfa1 /engines/agi/sprite.cpp
parent9ad3712aa30944fa3bdc5e03eb87499daf626592 (diff)
downloadscummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.tar.gz
scummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.tar.bz2
scummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.zip
AGI: Fix formatting.
This mostly enforces tabs for indentation and spaces for formatting. But also fixes spaces on empty lines, some extra/missing spaces. astyle + manual fixup
Diffstat (limited to 'engines/agi/sprite.cpp')
-rw-r--r--engines/agi/sprite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp
index a3920c39b1..74f20c1d22 100644
--- a/engines/agi/sprite.cpp
+++ b/engines/agi/sprite.cpp
@@ -253,7 +253,7 @@ void SpritesMgr::drawCel(ScreenObjEntry *screenObj) {
curY++;
}
- if (screenObj->objectNr == 0) { // if ego, update if ego is visible at the moment
+ if (screenObj->objectNr == 0) { // if ego, update if ego is visible at the moment
_vm->setFlag(VM_FLAG_EGO_INVISIBLE, isViewHidden);
}
}
@@ -451,7 +451,7 @@ void SpritesMgr::addToPic(int16 viewNr, int16 loopNr, int16 celNr, int16 xPos, i
screenObj->priority = priority;
eraseSprites();
-
+
// bugs related to this code: required by Gold Rush (see Sarien bug #587558)
if (screenObj->priority == 0) {
screenObj->priority = _gfx->priorityFromY(screenObj->yPos);
@@ -477,7 +477,7 @@ void SpritesMgr::addToPicDrawPriorityBox(ScreenObjEntry *screenObj, int16 border
int16 height = 0;
int16 width = 0;
int16 offsetX = 0;
-
+
// Figure out the height of the box
curY = screenObj->yPos;
do {
@@ -494,7 +494,7 @@ void SpritesMgr::addToPicDrawPriorityBox(ScreenObjEntry *screenObj, int16 border
// now actually draw lower horizontal line
curY = screenObj->yPos;
curX = screenObj->xPos;
-
+
width = screenObj->xSize;
while (width) {
_gfx->putPixel(curX, curY, GFX_SCREEN_MASK_PRIORITY, 0, border);