aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorMax Horn2004-01-30 20:47:21 +0000
committerMax Horn2004-01-30 20:47:21 +0000
commit4dab40f1233eba825aa9c5834b135403f922c8c4 (patch)
treed6830ed5ef189662ee43ddfa81ce3edcbf08f9e4 /sword1
parent8bd19dab0b5da51f28e80f8550c50527e0801252 (diff)
downloadscummvm-rg350-4dab40f1233eba825aa9c5834b135403f922c8c4.tar.gz
scummvm-rg350-4dab40f1233eba825aa9c5834b135403f922c8c4.tar.bz2
scummvm-rg350-4dab40f1233eba825aa9c5834b135403f922c8c4.zip
fix whitespaces (we should eventually try to remove this code duplication again, folks. maybe add a 'video' global module or so...)
svn-id: r12676
Diffstat (limited to 'sword1')
-rw-r--r--sword1/animation.cpp12
-rw-r--r--sword1/animation.h18
2 files changed, 15 insertions, 15 deletions
diff --git a/sword1/animation.cpp b/sword1/animation.cpp
index 4f3fa9df69..c289ea86a1 100644
--- a/sword1/animation.cpp
+++ b/sword1/animation.cpp
@@ -37,10 +37,10 @@ AnimationState::~AnimationState() {
if (decoder)
mpeg2_close(decoder);
delete mpgfile;
- delete sndfile;
+ delete sndfile;
#ifndef BACKEND_8BIT
- _sys->hide_overlay();
- delete overlay;
+ _sys->hide_overlay();
+ delete overlay;
#endif
#endif
}
@@ -57,7 +57,7 @@ bool AnimationState::init(const char *basename) {
#ifdef BACKEND_8BIT
- int i, p;
+ int i, p;
// Load lookup palettes
// TODO: Binary format so we can use File class
@@ -269,7 +269,7 @@ void AnimationState::plotYUV(NewGuiColor *lut, int width, int height, byte *cons
ptr[linepos ] = lut[i + dat[0][ ypos ]];
ptr[640 + linepos++] = lut[i + dat[0][width + ypos++]];
- }
+ }
linepos += (2 * 640 - width);
ypos += width;
}
@@ -360,7 +360,7 @@ bool AnimationState::decodeFrame() {
framenum++;
return true;
- }
+ }
break;
default:
diff --git a/sword1/animation.h b/sword1/animation.h
index 4907c5b2f0..61f2b788ac 100644
--- a/sword1/animation.h
+++ b/sword1/animation.h
@@ -26,13 +26,13 @@
// #define USE_MPEG2_0_3_1
#ifdef _MSC_VER
-typedef signed char int8_t;
-typedef signed short int16_t;
-typedef signed int int32_t;
+typedef int8 int8_t;
+typedef int16 int16_t;
+typedef int32 int32_t;
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned int uint32_t;
+typedef uint8 uint8_t;
+typedef uint16 uint16_t;
+typedef uint32 uint32_t;
#else
#include <inttypes.h>
#endif
@@ -111,9 +111,9 @@ private:
byte pal[4 * 256];
} palettes[50];
#else
- static NewGuiColor lookup2[BITDEPTH * BITDEPTH * 256];
- NewGuiColor * overlay;
- static bool lookupInit;
+ static NewGuiColor lookup2[BITDEPTH * BITDEPTH * 256];
+ NewGuiColor * overlay;
+ static bool lookupInit;
#endif