mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:27:34 +00:00
PaintBrush: Silence debug spam in Image compositing
This commit is contained in:
parent
9566f6c8b3
commit
58ee75c87a
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,8 @@
|
|||
#include "LayerModel.h"
|
||||
#include <LibGUI/Painter.h>
|
||||
|
||||
//#define PAINT_DEBUG
|
||||
|
||||
namespace PaintBrush {
|
||||
|
||||
RefPtr<Image> 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue