aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/animation.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2009-09-15 07:41:05 +0000
committerVladimir Menshakov2009-09-15 07:41:05 +0000
commit7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a (patch)
tree5c44cb4daae647089f7f075237f50af8c7110ea8 /engines/teenagent/animation.cpp
parent5605e8b74d47b66ab4ae85113176de4414f2dcf0 (diff)
downloadscummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.tar.gz
scummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.tar.bz2
scummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.zip
adapted code to comply code formatting conventions.
svn-id: r44098
Diffstat (limited to 'engines/teenagent/animation.cpp')
-rw-r--r--engines/teenagent/animation.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/teenagent/animation.cpp b/engines/teenagent/animation.cpp
index 794918de40..bae4ad9c14 100644
--- a/engines/teenagent/animation.cpp
+++ b/engines/teenagent/animation.cpp
@@ -30,11 +30,11 @@ namespace TeenAgent {
Animation::Animation() : id(0), x(0), y(0), loop(true), paused(false), data(0), data_size(0), frames_count(0), frames(0), index(0) {
}
-Surface * Animation::firstFrame(){
+Surface *Animation::firstFrame(){
if (frames == NULL || frames_count == 0)
return NULL;
- Surface * r = frames;
+ Surface *r = frames;
uint16 pos = READ_LE_UINT16(data + 1);
if (pos != 0) {
r->x = pos % 320;
@@ -43,14 +43,14 @@ Surface * Animation::firstFrame(){
return r;
}
-Surface * Animation::currentFrame(int dt) {
+Surface *Animation::currentFrame(int dt) {
if (paused)
return firstFrame();
if (frames == NULL || frames_count == 0)
return NULL;
- Surface * r;
+ Surface *r;
if (data != NULL) {
uint32 frame = 3 * index;
@@ -102,7 +102,7 @@ void Animation::free() {
index = 0;
}
-void Animation::load(Common::SeekableReadStream * s, Type type) {
+void Animation::load(Common::SeekableReadStream *s, Type type) {
//fixme: do not reload the same animation each time
free();