From a4798602d7a025dc13fd253d584dbf29dbec488d Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Wed, 15 Feb 2012 09:53:31 -0600 Subject: JANITORIAL: Fix missing whitespace in pointer cast find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h) --- engines/made/screen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/made/screen.cpp') diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp index 168902d577..b49bfff840 100644 --- a/engines/made/screen.cpp +++ b/engines/made/screen.cpp @@ -179,10 +179,10 @@ void Screen::drawSurface(Graphics::Surface *sourceSurface, int x, int y, int16 f clipHeight = clipInfo.clipRect.bottom - y; } - source = (byte*)sourceSurface->getBasePtr(0, startY); - dest = (byte*)clipInfo.destSurface->getBasePtr(x, y); + source = (byte *)sourceSurface->getBasePtr(0, startY); + dest = (byte *)clipInfo.destSurface->getBasePtr(x, y); if (_vm->getGameID() != GID_RTZ) - maskp = (byte*)_maskDrawCtx.destSurface->getBasePtr(x, y); + maskp = (byte *)_maskDrawCtx.destSurface->getBasePtr(x, y); int32 sourcePitch, linePtrAdd, sourceAdd; byte *linePtr; @@ -633,7 +633,7 @@ void Screen::printChar(uint c, int16 x, int16 y, byte color) { return; byte p; - byte *dest = (byte*)_fontDrawCtx.destSurface->getBasePtr(x, y); + byte *dest = (byte *)_fontDrawCtx.destSurface->getBasePtr(x, y); for (uint yc = 0; yc < height; yc++) { p = charData[yc]; -- cgit v1.2.3