diff options
Diffstat (limited to 'engines/sword25/gfx/bitmap.cpp')
-rw-r--r-- | engines/sword25/gfx/bitmap.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/engines/sword25/gfx/bitmap.cpp b/engines/sword25/gfx/bitmap.cpp index db48b2d6fa..b5412c8276 100644 --- a/engines/sword25/gfx/bitmap.cpp +++ b/engines/sword25/gfx/bitmap.cpp @@ -32,26 +32,14 @@ * */ -// ----------------------------------------------------------------------------- -// Includes -// ----------------------------------------------------------------------------- - #include "sword25/gfx/bitmap.h" #include "sword25/kernel/outputpersistenceblock.h" #include "sword25/kernel/inputpersistenceblock.h" namespace Sword25 { -// ----------------------------------------------------------------------------- -// Logging -// ----------------------------------------------------------------------------- - #define BS_LOG_PREFIX "BITMAP" -// ----------------------------------------------------------------------------- -// Konstruktion / Destruktion -// ----------------------------------------------------------------------------- - Bitmap::Bitmap(RenderObjectPtr<RenderObject> parentPtr, TYPES type, uint handle) : RenderObject(parentPtr, type, handle), _modulationColor(0xffffffff), @@ -61,15 +49,9 @@ Bitmap::Bitmap(RenderObjectPtr<RenderObject> parentPtr, TYPES type, uint handle) _flipV(false) { } -// ----------------------------------------------------------------------------- - Bitmap::~Bitmap() { } -// ----------------------------------------------------------------------------- -// Darstellungsart festlegen -// ----------------------------------------------------------------------------- - void Bitmap::setAlpha(int alpha) { if (!isAlphaAllowed()) { BS_LOG_WARNINGLN("Tried to set alpha value on a bitmap that does not support alpha blending. Call was ignored."); @@ -94,8 +76,6 @@ void Bitmap::setAlpha(int alpha) { } } -// ----------------------------------------------------------------------------- - void Bitmap::setModulationColor(uint modulationColor) { if (!isColorModulationAllowed()) { BS_LOG_WARNINGLN("Tried to set modulation color of a bitmap that does not support color modulation. Call was ignored."); @@ -109,15 +89,11 @@ void Bitmap::setModulationColor(uint modulationColor) { } } -// ----------------------------------------------------------------------------- - void Bitmap::setScaleFactor(float scaleFactor) { setScaleFactorX(scaleFactor); setScaleFactorY(scaleFactor); } -// ----------------------------------------------------------------------------- - void Bitmap::setScaleFactorX(float scaleFactorX) { if (!isScalingAllowed()) { BS_LOG_WARNINGLN("Tried to set scale factor of a bitmap that does not support scaling. Call was ignored."); @@ -140,8 +116,6 @@ void Bitmap::setScaleFactorX(float scaleFactorX) { } } -// ----------------------------------------------------------------------------- - void Bitmap::setScaleFactorY(float scaleFactorY) { if (!isScalingAllowed()) { BS_LOG_WARNINGLN("Tried to set scale factor of a bitmap that does not support scaling. Call was ignored."); @@ -164,24 +138,16 @@ void Bitmap::setScaleFactorY(float scaleFactorY) { } } -// ----------------------------------------------------------------------------- - void Bitmap::setFlipH(bool flipH) { _flipH = flipH; forceRefresh(); } -// ----------------------------------------------------------------------------- - void Bitmap::setFlipV(bool flipV) { _flipV = flipV; forceRefresh(); } -// ----------------------------------------------------------------------------- -// Persistenz -// ----------------------------------------------------------------------------- - bool Bitmap::persist(OutputPersistenceBlock &writer) { bool result = true; @@ -197,8 +163,6 @@ bool Bitmap::persist(OutputPersistenceBlock &writer) { return result; } -// ----------------------------------------------------------------------------- - bool Bitmap::unpersist(InputPersistenceBlock &reader) { bool result = true; |