aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/gfx_pixmap_scale.cpp
diff options
context:
space:
mode:
authorJordi Vilalta Prat2009-02-22 13:11:43 +0000
committerJordi Vilalta Prat2009-02-22 13:11:43 +0000
commitb5ce8d93200d60c3a752720300d77773750bf583 (patch)
tree77e1656645b26cb859c6ddb17843c73622880465 /engines/sci/gfx/gfx_pixmap_scale.cpp
parentac409a2ab7a15c08bde95f0647847dc71407ed88 (diff)
downloadscummvm-rg350-b5ce8d93200d60c3a752720300d77773750bf583.tar.gz
scummvm-rg350-b5ce8d93200d60c3a752720300d77773750bf583.tar.bz2
scummvm-rg350-b5ce8d93200d60c3a752720300d77773750bf583.zip
Whitespace cleanup
svn-id: r38783
Diffstat (limited to 'engines/sci/gfx/gfx_pixmap_scale.cpp')
-rw-r--r--engines/sci/gfx/gfx_pixmap_scale.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sci/gfx/gfx_pixmap_scale.cpp b/engines/sci/gfx/gfx_pixmap_scale.cpp
index 215be8c4d5..139e35d24b 100644
--- a/engines/sci/gfx/gfx_pixmap_scale.cpp
+++ b/engines/sci/gfx/gfx_pixmap_scale.cpp
@@ -128,7 +128,7 @@ void FUNCNAME(gfx_mode_t *mode, gfx_pixmap_t *pxm, int scale) {
#define WRITE_XPART(X_CALC_INTENSITY, DO_X_STEP) \
for (subx = 0; subx < ((DO_X_STEP) ? (xfact >> 1) : 1); subx++) { \
- unsigned int intensity; \
+ unsigned int intensity; \
wrcolor = 0; \
for (i = 0; i < 3; i++) { \
intensity = X_CALC_INTENSITY; \
@@ -137,17 +137,17 @@ void FUNCNAME(gfx_mode_t *mode, gfx_pixmap_t *pxm, int scale) {
i = 3; \
intensity = X_CALC_INTENSITY; \
if (inverse_alpha) \
- intensity = ~intensity; \
- wrcolor |= (intensity >> shifts[i]) & masks[i]; \
- if (separate_alpha_map) \
- *alpha_wrpos++ = intensity >> 24; \
+ intensity = ~intensity; \
+ wrcolor |= (intensity >> shifts[i]) & masks[i]; \
+ if (separate_alpha_map) \
+ *alpha_wrpos++ = intensity >> 24; \
wrcolor <<= (EXTRA_BYTE_OFFSET * 8); \
memcpy(wrpos, &wrcolor, COPY_BYTES); \
wrpos += COPY_BYTES; \
if (DO_X_STEP) \
- column_valuator -= column_step; \
+ column_valuator -= column_step; \
} \
- if (DO_X_STEP) \
+ if (DO_X_STEP) \
column_step = -column_step
// End of macro definition
@@ -163,7 +163,7 @@ void FUNCNAME(gfx_mode_t *mode, gfx_pixmap_t *pxm, int scale) {
int i; \
SIZETYPE wrcolor; \
wrpos = sublinepos; \
- alpha_wrpos = alpha_sublinepos; \
+ alpha_wrpos = alpha_sublinepos; \
for (i = 0; i < 4; i++) \
linecolor[i] = LINE_COLOR; \
/*-- left half --*/ \
@@ -178,7 +178,7 @@ void FUNCNAME(gfx_mode_t *mode, gfx_pixmap_t *pxm, int scale) {
MAKE_PIXEL((x + 1 == pxm->index_xl), othercolumn, ctexel, src[+1]); \
WRITE_XPART(X_CALC_INTENSITY_NORMAL, 1); \
if (DO_Y_STEP) \
- line_valuator -= line_step; \
+ line_valuator -= line_step; \
sublinepos += pxm->xl * bytespp; \
alpha_sublinepos += pxm->xl; \
} \