From d41bb9b7d5f46a07d2b2077dd705738b40cd5bed Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 3 Dec 2007 18:02:39 +0000 Subject: [PATCH] If environment variable "SYNFIG_SHOW_TILE_OUTLINES" is defined, draw red outlines around tiles as they are rendered. For debugging purposes. git-svn-id: http://svn.voria.com/code@1174 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/asyncrenderer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/asyncrenderer.cpp b/synfig-studio/trunk/src/gtkmm/asyncrenderer.cpp index 0758c99..772e6f9 100644 --- a/synfig-studio/trunk/src/gtkmm/asyncrenderer.cpp +++ b/synfig-studio/trunk/src/gtkmm/asyncrenderer.cpp @@ -194,6 +194,13 @@ public: { tile_t& tile(tile_queue.front()); + if (getenv("SYNFIG_SHOW_TILE_OUTLINES")) + { + Color red(1,0,0); + tile.surface.fill(red, 0, 0, 1, tile.surface.get_h()); + tile.surface.fill(red, 0, 0, tile.surface.get_w(), 1); + } + alive_flag=warm_target->add_tile(tile.surface,tile.x,tile.y); tile_queue.pop_front(); -- 2.7.4