Mercurial > fife-parpg
diff engine/core/video/animation.cpp @ 205:54bfd1015b35
* PyChan event handling rework (part I)
** Unified listeners
** ...hopefully more robust attach/detach code.
* Added compat, layout and also the new autopsition feature.
* Documentation
* Minor style fixes in core.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 14 Mar 2009 12:13:29 +0000 |
parents | 6e7d228def30 |
children | 3804348fe3fb |
line wrap: on
line diff
--- a/engine/core/video/animation.cpp Sat Mar 14 12:03:56 2009 +0000 +++ b/engine/core/video/animation.cpp Sat Mar 14 12:13:29 2009 +0000 @@ -46,16 +46,9 @@ } Animation::~Animation() { -// std::vector<FrameInfo>::const_iterator i(m_frames.begin()); -// while (i != m_frames.end()) { -// i->img->decRef(); -// i++; -// } + // note: we don't need to free the images, as they are handled via + // smart references. } - -// void Animation::addFrame(Image* image, unsigned int duration) { -// addFrame(ResourcePtr(image),duration); -// } void Animation::addFrame(ResourcePtr image, unsigned int duration) { FrameInfo info;