ptformat: Update the lib to 9d0b64f (upstream ptformat)
[ardour.git] / libs / surfaces / push2 / splash.cc
index d03205e3a604534c133c61115a82274a404d85e5..601f885467dd35f9859dd593425fa48bfb5f657f 100644 (file)
 #include "pbd/i18n.h"
 #include "pbd/search_path.h"
 
+#include "ardour/debug.h"
 #include "ardour/filesystem_paths.h"
 
 #include "splash.h"
 
+#ifdef __APPLE__
+#define Rect ArdourCanvas::Rect
+#endif
+
 using namespace ARDOUR;
 using namespace PBD;
 using namespace std;
 using namespace ArdourSurface;
 using namespace ArdourCanvas;
 
-SplashLayout::SplashLayout (Push2& p, Session& s)
-       : Push2Layout (p, s)
+SplashLayout::SplashLayout (Push2& p, Session& s, std::string const & name)
+       : Push2Layout (p, s, name)
 {
        std::string splash_file;
 
@@ -50,9 +55,15 @@ SplashLayout::SplashLayout (Push2& p, Session& s)
        img = Cairo::ImageSurface::create_from_png (splash_file);
 }
 
+SplashLayout::~SplashLayout ()
+{
+}
+
 void
 SplashLayout::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
 {
+       DEBUG_TRACE (DEBUG::Push2, string_compose ("splash render %1\n", area));
+
        int rows = display_height ();
        int cols = display_width ();