From 5b43fb6be7650a29b9aad6b504599f7b8600b419 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 Dec 2011 10:02:51 +0100 Subject: DREAMWEB: Code formatting --- engines/dreamweb/dreamweb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/dreamweb/dreamweb.cpp') diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 717c0620f4..e15f315c1e 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -326,14 +326,14 @@ void DreamWebEngine::mouseCall(uint16 *x, uint16 *y, uint16 *state) { void DreamWebEngine::getPalette(uint8 *data, uint start, uint count) { _system->getPaletteManager()->grabPalette(data, start, count); - while(count--) + while (count--) *data++ >>= 2; } void DreamWebEngine::setPalette(const uint8 *data, uint start, uint count) { assert(start + count <= 256); uint8 fixed[768]; - for(uint i = 0; i < count * 3; ++i) { + for (uint i = 0; i < count * 3; ++i) { fixed[i] = data[i] << 2; } _system->getPaletteManager()->setPalette(fixed, start, count); @@ -356,9 +356,9 @@ void DreamWebEngine::printUnderMonitor() { if (!s) error("lockScreen failed"); - for(uint y = 0; y < 104; ++y) { + for (uint y = 0; y < 104; ++y) { uint8 *src = (uint8 *)s->getBasePtr(76, 43 + 8 + y); - for(uint x = 0; x < 170; ++x) { + for (uint x = 0; x < 170; ++x) { if (*src < 231) *dst++ = *src++; else { -- cgit v1.2.3