diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-08-13 18:12:37 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-08-14 01:00:04 +0200 |
commit | bf021c369f2306ee507da9bd3cc4cd10ac5d234c (patch) | |
tree | a3dc2552801cfe31cb524c6f375980eaa48e844b /include | |
parent | 56d5531373cf0588e02c254ea8ffa00221c8342b (diff) |
tdf#135500: always use transparent and clear content vdev in impBufferDevice
This removes the only place that hadn't used transparent impBufferDevice
yet - in VclProcessor2D::RenderMaskPrimitive2DPixel. Not clearing the vdev
made it draw on whatever garbage was left there from previous paints when
the buffer was taken from maFreeBuffers in VDevBuffer::alloc, so since this
was also the only place left that didn't clear the buffer explicitly, this
makes the clear unconditional in impBufferDevice ctor.
Also this makes sure to clear proper rectangle in VDevBuffer::alloc, and to
clear mpAlphaVDev in OutputDevice::Erase.
Change-Id: I7c1c0cc510a92628f19020b3faf0c0cd81f5a599
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100674
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index f5eeed9c715d..ce4c204d3d94 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -964,7 +964,7 @@ public: void DrawWallpaper( const tools::Rectangle& rRect, const Wallpaper& rWallpaper ); void Erase(); - void Erase( const tools::Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); } + void Erase(const tools::Rectangle& rRect); protected: void DrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper ); |