mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
PixelPaint: Split bitmap() of Layer into {content, display}_bitmap
This is in preparation to support masking of Layers. We now distinguish between the "display_bitmap" which will be the whole Layer with every effect applied and the "content_bitmap" which contains the actual unmodified pixels in the Layer.
This commit is contained in:
parent
b6510f8e76
commit
31a9196bfe
14 changed files with 73 additions and 42 deletions
|
@ -40,7 +40,7 @@ void SprayTool::paint_it()
|
|||
if (!layer)
|
||||
return;
|
||||
|
||||
auto& bitmap = layer->bitmap();
|
||||
auto& bitmap = layer->content_bitmap();
|
||||
GUI::Painter painter(bitmap);
|
||||
VERIFY(bitmap.bpp() == 32);
|
||||
const double minimal_radius = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue