#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;
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 ();