aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-03-08 10:29:52 +0000
committerMax Horn2010-03-08 10:29:52 +0000
commit78b6bed8db4052d97d37fa4ca0bac1bab7b669c3 (patch)
tree796d2b1dc2dbd387eb956143eace062f35193a48
parentd239d5c2f82c1e2dea09ed27475ec136a7ea3b5f (diff)
downloadscummvm-rg350-78b6bed8db4052d97d37fa4ca0bac1bab7b669c3.tar.gz
scummvm-rg350-78b6bed8db4052d97d37fa4ca0bac1bab7b669c3.tar.bz2
scummvm-rg350-78b6bed8db4052d97d37fa4ca0bac1bab7b669c3.zip
Code formatting
svn-id: r48188
-rw-r--r--graphics/scaler/thumbnail_intern.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp
index 54252892b6..66b275fcb2 100644
--- a/graphics/scaler/thumbnail_intern.cpp
+++ b/graphics/scaler/thumbnail_intern.cpp
@@ -32,18 +32,18 @@
#include "graphics/scaler/intern.h"
template<int bitFormat>
-uint16 quadBlockInterpolate(const uint8* src, uint32 srcPitch) {
- uint16 colorx1y1 = *(((const uint16*)src));
- uint16 colorx2y1 = *(((const uint16*)src) + 1);
+uint16 quadBlockInterpolate(const uint8 *src, uint32 srcPitch) {
+ uint16 colorx1y1 = *(((const uint16 *)src));
+ uint16 colorx2y1 = *(((const uint16 *)src) + 1);
- uint16 colorx1y2 = *(((const uint16*)(src + srcPitch)));
- uint16 colorx2y2 = *(((const uint16*)(src + srcPitch)) + 1);
+ uint16 colorx1y2 = *(((const uint16 *)(src + srcPitch)));
+ uint16 colorx2y2 = *(((const uint16 *)(src + srcPitch)) + 1);
return interpolate16_1_1_1_1<Graphics::ColorMasks<bitFormat> >(colorx1y1, colorx2y1, colorx1y2, colorx2y2);
}
template<int bitFormat>
-void createThumbnail_2(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) {
+void createThumbnail_2(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
assert(width % 2 == 0);
assert(height % 2 == 0);
for (int y = 0; y < height; y += 2) {
@@ -56,7 +56,7 @@ void createThumbnail_2(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32
}
template<int bitFormat>
-void createThumbnail_4(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) {
+void createThumbnail_4(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
assert(width % 4 == 0);
assert(height % 4 == 0);
for (int y = 0; y < height; y += 4) {
@@ -73,7 +73,7 @@ void createThumbnail_4(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32
}
}
-static void createThumbnail(const uint8* src, uint32 srcPitch, uint8* dstPtr, uint32 dstPitch, int width, int height) {
+static void createThumbnail(const uint8 *src, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
// only 1/2 and 1/4 downscale supported
if (width != 320 && width != 640)
return;