From 8b2c751724dbd4c64596fb2692315d889ab145af Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Tue, 7 Aug 2007 17:51:01 +0200
Subject: [PATCH] Restored GraphicalAPI::getPoolSprite.
---
src/graphicalapi.h | 2 +-
src/graphicalsystem.cpp | 6 +++---
src/graphicalsystem.h | 2 +-
src/hlvariant/graphicalapi_unwrapped.h | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/graphicalapi.h b/src/graphicalapi.h
index 2fac3b4..0ec9e0a 100644
--- a/src/graphicalapi.h
+++ b/src/graphicalapi.h
@@ -76,7 +76,7 @@ public:
/**
* \return the sprite at the position \a index in the graphical pool.
*/
- //virtual NamedSprite getPoolSprite(int pool, int index) = 0;
+ virtual NamedSprite getPoolSprite(int pool, int index) = 0;
/**
* Removes the sprite at the position \a index in the graphical pool.
diff --git a/src/graphicalsystem.cpp b/src/graphicalsystem.cpp
index 760c98c..330c573 100644
--- a/src/graphicalsystem.cpp
+++ b/src/graphicalsystem.cpp
@@ -137,9 +137,9 @@ int GraphicalSystem::poolSize(int pool) {
return m_view->pool(pool)->fill();
}
-// NamedSprite GraphicalSystem::getPoolSprite(int pool, int index) {
-// return m_view->pool(pool)->getSprite(index);
-// }
+NamedSprite GraphicalSystem::getPoolSprite(int pool, int index) {
+ return m_view->pool(pool)->getSprite(index);
+}
void GraphicalSystem::removePoolSprite(int pool, int index) {
m_view->pool(pool)->removeSprite(index);
diff --git a/src/graphicalsystem.h b/src/graphicalsystem.h
index 223622c..b7d93b2 100644
--- a/src/graphicalsystem.h
+++ b/src/graphicalsystem.h
@@ -102,7 +102,7 @@ private:
/**
* \return the sprite at the position \a index in the graphical pool. (interface for GraphicalAPI)
*/
- //virtual NamedSprite getPoolSprite(int pool, int index);
+ virtual NamedSprite getPoolSprite(int pool, int index);
/**
* Removes the sprite at the position \a index in the graphical pool. (interface for GraphicalAPI)
diff --git a/src/hlvariant/graphicalapi_unwrapped.h b/src/hlvariant/graphicalapi_unwrapped.h
index bb06cb2..cb6f6b7 100644
--- a/src/hlvariant/graphicalapi_unwrapped.h
+++ b/src/hlvariant/graphicalapi_unwrapped.h
@@ -81,9 +81,9 @@ namespace HLVariant {
return m_graphical_api->insertPoolPiece(pool, index, &wpiece);
}
- // virtual NamedSprite getPoolSprite(int pool, int index) {
- // return m_graphical_api->getPoolSprite(pool, index);
- // }
+ virtual NamedSprite getPoolSprite(int pool, int index) {
+ return m_graphical_api->getPoolSprite(pool, index);
+ }
virtual void removePoolSprite(int pool, int index) {
m_graphical_api->removePoolSprite(pool, index);
--
2.11.4.GIT