aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorMax Horn2009-03-07 19:24:31 +0000
committerMax Horn2009-03-07 19:24:31 +0000
commitf9ecd95d6960341e696ab1aa8262e48135908d51 (patch)
tree4ab853891a0ca47c4d46a2691546e27a7e05b7f9 /engines/saga
parent2dfae035ac7351b1161d0466405c1d44d69f701a (diff)
downloadscummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.gz
scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.bz2
scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.zip
Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/interface.cpp8
-rw-r--r--engines/saga/render.cpp12
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 4aa8f6ae27..7a08a0e6c9 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -2186,10 +2186,10 @@ void Interface::drawButtonBox(const Rect& rect, ButtonKind kind, bool down) {
_vm->_gfx->setPixelColor(x, ye, cornerColor);
_vm->_gfx->setPixelColor(xe, y, cornerColor);
_vm->_gfx->setPixelColor(xe, ye, cornerColor);
- _vm->_gfx->hLine(x + 1, y, x + w - 2, frameColor);
- _vm->_gfx->hLine(x + 1, ye, x + w - 2, frameColor);
- _vm->_gfx->vLine(x, y + 1, y + h - 2, frameColor);
- _vm->_gfx->vLine(xe, y + 1, y + h - 2, frameColor);
+ _vm->_gfx->hLine(x + 1, y, x + w - 2, frameColor);
+ _vm->_gfx->hLine(x + 1, ye, x + w - 2, frameColor);
+ _vm->_gfx->vLine(x, y + 1, y + h - 2, frameColor);
+ _vm->_gfx->vLine(xe, y + 1, y + h - 2, frameColor);
x++;
y++;
diff --git a/engines/saga/render.cpp b/engines/saga/render.cpp
index 599fde20e5..f432dbd304 100644
--- a/engines/saga/render.cpp
+++ b/engines/saga/render.cpp
@@ -220,8 +220,8 @@ void Render::addDirtyRect(Common::Rect rect) {
if (x2 > x1 && y2 > y1) {
Common::Rect rectClipped(x1, y1, x2, y2);
// Check if the new rectangle is contained within another in the list
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
if (it->contains(rectClipped))
return;
if (rectClipped.contains(*it)) {
@@ -236,8 +236,8 @@ void Render::addDirtyRect(Common::Rect rect) {
void Render::restoreChangedRects() {
if (!_fullRefresh) {
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
//_backGroundSurface.frameRect(*it, 1); // DEBUG
if (_vm->_interface->getFadeMode() != kFadeOut)
g_system->copyRectToScreen(_vm->_gfx->getBackBufferPixels(), _backGroundSurface.w, it->left, it->top, it->width(), it->height());
@@ -248,8 +248,8 @@ void Render::restoreChangedRects() {
void Render::drawDirtyRects() {
if (!_fullRefresh) {
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
//_backGroundSurface.frameRect(*it, 2); // DEBUG
if (_vm->_interface->getFadeMode() != kFadeOut)
g_system->copyRectToScreen(_vm->_gfx->getBackBufferPixels(), _backGroundSurface.w, it->left, it->top, it->width(), it->height());