aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/gfx/panel.cpp')
-rw-r--r--engines/sword25/gfx/panel.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/engines/sword25/gfx/panel.cpp b/engines/sword25/gfx/panel.cpp
index 888f6f7468..1e2921fd56 100644
--- a/engines/sword25/gfx/panel.cpp
+++ b/engines/sword25/gfx/panel.cpp
@@ -32,10 +32,6 @@
*
*/
-// -----------------------------------------------------------------------------
-// Includes
-// -----------------------------------------------------------------------------
-
#include "sword25/gfx/panel.h"
#include "sword25/kernel/inputpersistenceblock.h"
@@ -45,14 +41,8 @@
namespace Sword25 {
-// -----------------------------------------------------------------------------
-
#define BS_LOG_PREFIX "PANEL"
-// -----------------------------------------------------------------------------
-// Construction/Destruction
-// -----------------------------------------------------------------------------
-
Panel::Panel(RenderObjectPtr<RenderObject> parentPtr, int width, int height, uint color) :
RenderObject(parentPtr, RenderObject::TYPE_PANEL),
_color(color) {
@@ -74,22 +64,14 @@ Panel::Panel(RenderObjectPtr<RenderObject> parentPtr, int width, int height, uin
_initSuccess = true;
}
-// -----------------------------------------------------------------------------
-
Panel::Panel(InputPersistenceBlock &reader, RenderObjectPtr<RenderObject> parentPtr, uint handle) :
RenderObject(parentPtr, RenderObject::TYPE_PANEL, handle) {
_initSuccess = unpersist(reader);
}
-// -----------------------------------------------------------------------------
-
Panel::~Panel() {
}
-// -----------------------------------------------------------------------------
-// Rendern
-// -----------------------------------------------------------------------------
-
bool Panel::doRender() {
// Falls der Alphawert 0 ist, ist das Panel komplett durchsichtig und es muss nichts gezeichnet werden.
if (_color >> 24 == 0)
@@ -101,10 +83,6 @@ bool Panel::doRender() {
return gfxPtr->fill(&_bbox, _color);
}
-// -----------------------------------------------------------------------------
-// Persistenz
-// -----------------------------------------------------------------------------
-
bool Panel::persist(OutputPersistenceBlock &writer) {
bool result = true;
@@ -116,8 +94,6 @@ bool Panel::persist(OutputPersistenceBlock &writer) {
return result;
}
-// -----------------------------------------------------------------------------
-
bool Panel::unpersist(InputPersistenceBlock &reader) {
bool result = true;