diff options
Diffstat (limited to 'engines/sword25/gfx/staticbitmap.cpp')
-rw-r--r-- | engines/sword25/gfx/staticbitmap.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/engines/sword25/gfx/staticbitmap.cpp b/engines/sword25/gfx/staticbitmap.cpp index 3184e4f971..43e9ef73c6 100644 --- a/engines/sword25/gfx/staticbitmap.cpp +++ b/engines/sword25/gfx/staticbitmap.cpp @@ -32,10 +32,6 @@ * */ -// ----------------------------------------------------------------------------- -// Includes -// ----------------------------------------------------------------------------- - #include "sword25/gfx/staticbitmap.h" #include "sword25/gfx/bitmapresource.h" #include "sword25/package/packagemanager.h" @@ -44,16 +40,8 @@ namespace Sword25 { -// ----------------------------------------------------------------------------- -// Logging -// ----------------------------------------------------------------------------- - #define BS_LOG_PREFIX "STATICBITMAP" -// ----------------------------------------------------------------------------- -// Konstruktion / Destruktion -// ----------------------------------------------------------------------------- - StaticBitmap::StaticBitmap(RenderObjectPtr<RenderObject> parentPtr, const Common::String &filename) : Bitmap(parentPtr, TYPE_STATICBITMAP) { // Das BS_Bitmap konnte nicht erzeugt werden, daher muss an dieser Stelle abgebrochen werden. @@ -63,15 +51,11 @@ StaticBitmap::StaticBitmap(RenderObjectPtr<RenderObject> parentPtr, const Common _initSuccess = initBitmapResource(filename); } -// ----------------------------------------------------------------------------- - StaticBitmap::StaticBitmap(InputPersistenceBlock &reader, RenderObjectPtr<RenderObject> parentPtr, uint handle) : Bitmap(parentPtr, TYPE_STATICBITMAP, handle) { _initSuccess = unpersist(reader); } -// ----------------------------------------------------------------------------- - bool StaticBitmap::initBitmapResource(const Common::String &filename) { // Bild-Resource laden Resource *resourcePtr = Kernel::GetInstance()->GetResourceManager()->RequestResource(filename); @@ -99,13 +83,9 @@ bool StaticBitmap::initBitmapResource(const Common::String &filename) { return true; } -// ----------------------------------------------------------------------------- - StaticBitmap::~StaticBitmap() { } -// ----------------------------------------------------------------------------- - bool StaticBitmap::doRender() { // Bitmap holen Resource *resourcePtr = Kernel::GetInstance()->GetResourceManager()->RequestResource(_resourceFilename); @@ -137,8 +117,6 @@ bool StaticBitmap::doRender() { return result; } -// ----------------------------------------------------------------------------- - uint StaticBitmap::getPixel(int x, int y) const { BS_ASSERT(x >= 0 && x < _width); BS_ASSERT(y >= 0 && y < _height); @@ -151,17 +129,11 @@ uint StaticBitmap::getPixel(int x, int y) const { return result; } -// ----------------------------------------------------------------------------- - bool StaticBitmap::setContent(const byte *pixeldata, uint size, uint offset, uint stride) { BS_LOG_ERRORLN("SetContent() ist not supported with this object."); return false; } -// ----------------------------------------------------------------------------- -// Auskunftsmethoden -// ----------------------------------------------------------------------------- - bool StaticBitmap::isAlphaAllowed() const { Resource *pResource = Kernel::GetInstance()->GetResourceManager()->RequestResource(_resourceFilename); BS_ASSERT(pResource->GetType() == Resource::TYPE_BITMAP); @@ -170,8 +142,6 @@ bool StaticBitmap::isAlphaAllowed() const { return result; } -// ----------------------------------------------------------------------------- - bool StaticBitmap::isColorModulationAllowed() const { Resource *pResource = Kernel::GetInstance()->GetResourceManager()->RequestResource(_resourceFilename); BS_ASSERT(pResource->GetType() == Resource::TYPE_BITMAP); @@ -180,8 +150,6 @@ bool StaticBitmap::isColorModulationAllowed() const { return result; } -// ----------------------------------------------------------------------------- - bool StaticBitmap::isScalingAllowed() const { Resource *pResource = Kernel::GetInstance()->GetResourceManager()->RequestResource(_resourceFilename); BS_ASSERT(pResource->GetType() == Resource::TYPE_BITMAP); @@ -190,10 +158,6 @@ bool StaticBitmap::isScalingAllowed() const { return result; } -// ----------------------------------------------------------------------------- -// Persistenz -// ----------------------------------------------------------------------------- - bool StaticBitmap::persist(OutputPersistenceBlock &writer) { bool result = true; |