(svn r17701) -Codechange: don't start line with a space if it's not inside comment

This commit is contained in:
smatz
2009-10-04 20:51:50 +00:00
parent b243f6ca97
commit 6c7f8fc8b4
12 changed files with 25 additions and 24 deletions

View File

@@ -246,14 +246,14 @@ static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
#ifdef ENABLE_COCOA_QUARTZ
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
/*
/*
* If we get here we are running 10.4 or earlier and either openttd was compiled without the quickdraw driver
* or it failed to load for some reason. Fall back to Quartz if possible even though that driver is slower.
*/
if (MacOSVersionIsAtLeast(10, 4, 0)) {
ret = QZ_CreateWindowQuartzSubdriver(width, height, bpp);
if (ret != NULL) return ret;
}
if (MacOSVersionIsAtLeast(10, 4, 0)) {
ret = QZ_CreateWindowQuartzSubdriver(width, height, bpp);
if (ret != NULL) return ret;
}
#endif
#endif

View File

@@ -351,7 +351,7 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
/* Calculate total area we are blitting */
for (n = 0; n < dirtyRectCount; n++) {
blitArea += dirtyRects[n].size.width * dirtyRects[n].size.height;
}
}
/*
* This might be completely stupid, but in my extremely subjective opinion it feels faster
@@ -396,8 +396,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
clippedImage = CGImageCreateWithImageInRect(fullImage, clipRect);
CGContextDrawImage(viewContext, blitRect, clippedImage);
CGImageRelease(clippedImage);
}
}
}
}
CGImageRelease(fullImage);
}