X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fimage.cc;h=46cadd0d1cc32008b3c0482725715970c11df2bc;hb=e91a0f7e11d33694d693df443c9cff4644c751b9;hp=32e453dc30e70b3a19bd271dece3ff2e9d8e28b2;hpb=300b484cf6ac14c15e365c4062345d64a61c4b18;p=ardour.git diff --git a/libs/canvas/image.cc b/libs/canvas/image.cc index 32e453dc30..46cadd0d1c 100644 --- a/libs/canvas/image.cc +++ b/libs/canvas/image.cc @@ -22,8 +22,18 @@ using namespace ArdourCanvas; -Image::Image (Group* group, Cairo::Format fmt, int width, int height) - : Item (group) +Image::Image (Canvas* canvas, Cairo::Format fmt, int width, int height) + : Item (canvas) + , _format (fmt) + , _width (width) + , _height (height) + , _need_render (false) +{ + DataReady.connect (data_connections, MISSING_INVALIDATOR, boost::bind (&Image::accept_data, this), gui_context()); +} + +Image::Image (Item* parent, Cairo::Format fmt, int width, int height) + : Item (parent) , _format (fmt) , _width (width) , _height (height)