From 58ee75c87a3e207e5d6388d026666211e5954264 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 May 2020 00:00:24 +0200 Subject: [PATCH] PaintBrush: Silence debug spam in Image compositing --- Applications/PaintBrush/Image.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Applications/PaintBrush/Image.cpp b/Applications/PaintBrush/Image.cpp index b2fcc459a9..015262b8ae 100644 --- a/Applications/PaintBrush/Image.cpp +++ b/Applications/PaintBrush/Image.cpp @@ -29,6 +29,8 @@ #include "LayerModel.h" #include +//#define PAINT_DEBUG + namespace PaintBrush { RefPtr Image::create_with_size(const Gfx::Size& size) @@ -51,7 +53,9 @@ void Image::paint_into(GUI::Painter& painter, const Gfx::Rect& dest_rect, const { for (auto& layer : m_layers) { auto target = dest_rect.translated(layer.location()); +#ifdef IMAGE_DEBUG dbg() << "Composite layer " << layer.name() << " target: " << target << ", src_rect: " << src_rect; +#endif painter.draw_scaled_bitmap(target, layer.bitmap(), src_rect); } }