aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkimgbuf.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-12-20 21:59:01 +0100
committerSebastian Geerken <devnull@localhost>2013-12-20 21:59:01 +0100
commit163e393444f77ac697eb74580355b3c70c1c7800 (patch)
treea51059d7a53f3353f33e07cca3699ae4b8d6da76 /dw/fltkimgbuf.cc
parent6c7572f8bd23064f96ba716e1ba8ba8a34847001 (diff)
RTFL messages.
Diffstat (limited to 'dw/fltkimgbuf.cc')
-rw-r--r--dw/fltkimgbuf.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/dw/fltkimgbuf.cc b/dw/fltkimgbuf.cc
index d9d653ec..86497160 100644
--- a/dw/fltkimgbuf.cc
+++ b/dw/fltkimgbuf.cc
@@ -85,6 +85,8 @@ FltkImgbuf::FltkImgbuf (Type type, int width, int height, double gamma)
FltkImgbuf::FltkImgbuf (Type type, int width, int height, double gamma,
FltkImgbuf *root)
{
+ DBG_OBJ_CREATE ("dw::fltk::FltkImgbuf");
+
_MSG("FltkImgbuf: new scaled %p, root is %p\n", this, root);
init (type, width, height, gamma, root);
}
@@ -156,8 +158,6 @@ void FltkImgbuf::init (Type type, int width, int height, double gamma,
FltkImgbuf::~FltkImgbuf ()
{
- _MSG("~FltkImgbuf[%s %p] deleted\n", isRoot() ? "root":"scaled", this);
-
if (!isRoot())
root->detachScaledBuf (this);
@@ -166,6 +166,8 @@ FltkImgbuf::~FltkImgbuf ()
if (scaledBuffers)
delete scaledBuffers;
+
+ DBG_OBJ_DELETE ();
}
/**
@@ -386,6 +388,8 @@ core::Imgbuf* FltkImgbuf::getScaledBuf (int width, int height)
// This size is not yet used, so a new buffer has to be created.
FltkImgbuf *sb = new FltkImgbuf (type, width, height, gamma, this);
scaledBuffers->append (sb);
+ DBG_OBJ_ASSOC_CHILD (sb);
+
return sb;
}