there's no random() on window, but no matter
authorRobin Gareus <robin@gareus.org>
Tue, 30 Sep 2014 16:51:31 +0000 (18:51 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 30 Sep 2014 17:08:16 +0000 (19:08 +0200)
libs/canvas/canvas.cc

index 0c0d024836acc649c32fb4e70596677e8baf4dc6..133e09484c5522a701fad8dfd585ae773e1b4dd3 100644 (file)
@@ -113,7 +113,7 @@ Canvas::render (Rect const & area, Cairo::RefPtr<Cairo::Context> const & context
 
                _root.render (*draw, context);
 
-#ifdef CANVAS_DEBUG
+#if defined CANVAS_DEBUG && !PLATFORM_WINDOWS
                if (getenv ("CANVAS_HARLEQUIN_DEBUGGING")) {
                        // This transparently colors the rect being rendered, after it has been drawn.
                        double r = (random() % 65536) /65536.0;