comparison engine/core/video/animation.cpp @ 482:16c2b3ee59ce

* Merged the view performance branch back into trunk. fixes[ticket:419]
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 29 Apr 2010 13:51:45 +0000
parents 64738befdf3b
children e3140f01749d
comparison
equal deleted inserted replaced
481:1f37adc9a685 482:16c2b3ee59ce
80 } 80 }
81 81
82 bool Animation::isValidIndex(int index) const{ 82 bool Animation::isValidIndex(int index) const{
83 int size = m_frames.size(); 83 int size = m_frames.size();
84 return size > 0 && index >= 0 && index < size; 84 return size > 0 && index >= 0 && index < size;
85 } 85 }
86 86
87 Image* Animation::getFrame(int index) { 87 Image* Animation::getFrame(int index) {
88 if (isValidIndex(index)) { 88 if (isValidIndex(index)) {
89 return m_frames[index].image.get<Image>(); 89 return m_frames[index].image.get<Image>();
90 } else { 90 } else {