aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/dynamicbitmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/gfx/dynamicbitmap.cpp')
-rw-r--r--engines/sword25/gfx/dynamicbitmap.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/engines/sword25/gfx/dynamicbitmap.cpp b/engines/sword25/gfx/dynamicbitmap.cpp
index 47ff68b932..2766294d48 100644
--- a/engines/sword25/gfx/dynamicbitmap.cpp
+++ b/engines/sword25/gfx/dynamicbitmap.cpp
@@ -32,10 +32,6 @@
*
*/
-// -----------------------------------------------------------------------------
-// Includes
-// -----------------------------------------------------------------------------
-
#include "sword25/gfx/dynamicbitmap.h"
#include "sword25/gfx/bitmapresource.h"
#include "sword25/package/packagemanager.h"
@@ -43,16 +39,8 @@
namespace Sword25 {
-// -----------------------------------------------------------------------------
-// Logging
-// -----------------------------------------------------------------------------
-
#define BS_LOG_PREFIX "DYNAMICBITMAP"
-// -----------------------------------------------------------------------------
-// Konstruktion / Destruktion
-// -----------------------------------------------------------------------------
-
DynamicBitmap::DynamicBitmap(RenderObjectPtr<RenderObject> parentPtr, uint width, uint height) :
Bitmap(parentPtr, TYPE_DYNAMICBITMAP) {
// Das BS_Bitmap konnte nicht erzeugt werden, daher muss an dieser Stelle abgebrochen werden.
@@ -61,15 +49,11 @@ DynamicBitmap::DynamicBitmap(RenderObjectPtr<RenderObject> parentPtr, uint width
_initSuccess = createRenderedImage(width, height);
}
-// -----------------------------------------------------------------------------
-
DynamicBitmap::DynamicBitmap(InputPersistenceBlock &reader, RenderObjectPtr<RenderObject> parentPtr, uint handle) :
Bitmap(parentPtr, TYPE_DYNAMICBITMAP, handle) {
_initSuccess = unpersist(reader);
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::createRenderedImage(uint width, uint height) {
// RenderedImage mit den gewünschten Maßen erstellen
bool result = false;
@@ -81,13 +65,9 @@ bool DynamicBitmap::createRenderedImage(uint width, uint height) {
return result;
}
-// -----------------------------------------------------------------------------
-
DynamicBitmap::~DynamicBitmap() {
}
-// -----------------------------------------------------------------------------
-
uint DynamicBitmap::getPixel(int x, int y) const {
BS_ASSERT(x >= 0 && x < _width);
BS_ASSERT(y >= 0 && y < _height);
@@ -95,8 +75,6 @@ uint DynamicBitmap::getPixel(int x, int y) const {
return _image->getPixel(x, y);
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::doRender() {
// Framebufferobjekt holen
GraphicEngine *pGfx = Kernel::GetInstance()->GetGfx();
@@ -119,42 +97,26 @@ bool DynamicBitmap::doRender() {
return result;
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::setContent(const byte *pixeldata, uint size, uint offset, uint stride) {
return _image->setContent(pixeldata, size, offset, stride);
}
-// -----------------------------------------------------------------------------
-// Auskunftsmethoden
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::isScalingAllowed() const {
return _image->isScalingAllowed();
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::isAlphaAllowed() const {
return _image->isAlphaAllowed();
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::isColorModulationAllowed() const {
return _image->isColorModulationAllowed();
}
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::isSetContentAllowed() const {
return true;
}
-// -----------------------------------------------------------------------------
-// Persistenz
-// -----------------------------------------------------------------------------
-
bool DynamicBitmap::persist(OutputPersistenceBlock &writer) {
bool result = true;