You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2023/04/08 21:38:50 UTC
[openoffice] branch trunk updated: Add transparent border to avoid repaint issues
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4b8033380f Add transparent border to avoid repaint issues
4b8033380f is described below
commit 4b8033380f80e13c9dd42556d58e106a405f8290
Author: mseidel <ms...@apache.org>
AuthorDate: Sat Apr 8 23:38:30 2023 +0200
Add transparent border to avoid repaint issues
---
.../source/sdr/primitive2d/sdrprimitivetools.cxx | 66 +++++++++++-----------
1 file changed, 34 insertions(+), 32 deletions(-)
diff --git a/main/svx/source/sdr/primitive2d/sdrprimitivetools.cxx b/main/svx/source/sdr/primitive2d/sdrprimitivetools.cxx
index c5ca0192b7..50dd41ee87 100644
--- a/main/svx/source/sdr/primitive2d/sdrprimitivetools.cxx
+++ b/main/svx/source/sdr/primitive2d/sdrprimitivetools.cxx
@@ -104,74 +104,42 @@ namespace drawinglayer
const BitmapColor aMaskColor(0x01);
// Y,X unusual order (!)
- pWContent->SetPixel(0, 0, aPixColorA);
- pWContent->SetPixel(0, 1, aPixColorA);
- pWContent->SetPixel(0, 2, aPixColorA);
- pWContent->SetPixel(0, 3, aPixColorA);
- pWContent->SetPixel(0, 4, aPixColorA);
- pWContent->SetPixel(0, 5, aPixColorA);
- pWContent->SetPixel(0, 6, aPixColorA);
- pWContent->SetPixel(0, 7, aPixColorA);
- pWContent->SetPixel(0, 8, aPixColorA);
- pWContent->SetPixel(1, 0, aPixColorA);
pWContent->SetPixel(1, 2, aPixColorA);
pWContent->SetPixel(1, 3, aPixColorA);
pWContent->SetPixel(1, 4, aPixColorA);
pWContent->SetPixel(1, 5, aPixColorA);
pWContent->SetPixel(1, 6, aPixColorA);
- pWContent->SetPixel(1, 8, aPixColorA);
- pWContent->SetPixel(2, 0, aPixColorA);
pWContent->SetPixel(2, 1, aPixColorA);
pWContent->SetPixel(2, 3, aPixColorA);
pWContent->SetPixel(2, 4, aPixColorA);
pWContent->SetPixel(2, 5, aPixColorA);
pWContent->SetPixel(2, 7, aPixColorA);
- pWContent->SetPixel(2, 8, aPixColorA);
- pWContent->SetPixel(3, 0, aPixColorA);
pWContent->SetPixel(3, 1, aPixColorA);
pWContent->SetPixel(3, 2, aPixColorA);
pWContent->SetPixel(3, 4, aPixColorA);
pWContent->SetPixel(3, 6, aPixColorA);
pWContent->SetPixel(3, 7, aPixColorA);
- pWContent->SetPixel(3, 8, aPixColorA);
- pWContent->SetPixel(4, 0, aPixColorA);
pWContent->SetPixel(4, 1, aPixColorA);
pWContent->SetPixel(4, 2, aPixColorA);
pWContent->SetPixel(4, 3, aPixColorA);
pWContent->SetPixel(4, 5, aPixColorA);
pWContent->SetPixel(4, 6, aPixColorA);
pWContent->SetPixel(4, 7, aPixColorA);
- pWContent->SetPixel(4, 8, aPixColorA);
- pWContent->SetPixel(5, 0, aPixColorA);
pWContent->SetPixel(5, 1, aPixColorA);
pWContent->SetPixel(5, 2, aPixColorA);
pWContent->SetPixel(5, 4, aPixColorA);
pWContent->SetPixel(5, 6, aPixColorA);
pWContent->SetPixel(5, 7, aPixColorA);
- pWContent->SetPixel(5, 8, aPixColorA);
- pWContent->SetPixel(6, 0, aPixColorA);
pWContent->SetPixel(6, 1, aPixColorA);
pWContent->SetPixel(6, 3, aPixColorA);
pWContent->SetPixel(6, 4, aPixColorA);
pWContent->SetPixel(6, 5, aPixColorA);
pWContent->SetPixel(6, 7, aPixColorA);
- pWContent->SetPixel(6, 8, aPixColorA);
- pWContent->SetPixel(7, 0, aPixColorA);
pWContent->SetPixel(7, 2, aPixColorA);
pWContent->SetPixel(7, 3, aPixColorA);
pWContent->SetPixel(7, 4, aPixColorA);
pWContent->SetPixel(7, 5, aPixColorA);
pWContent->SetPixel(7, 6, aPixColorA);
- pWContent->SetPixel(7, 8, aPixColorA);
- pWContent->SetPixel(8, 0, aPixColorA);
- pWContent->SetPixel(8, 1, aPixColorA);
- pWContent->SetPixel(8, 2, aPixColorA);
- pWContent->SetPixel(8, 3, aPixColorA);
- pWContent->SetPixel(8, 4, aPixColorA);
- pWContent->SetPixel(8, 5, aPixColorA);
- pWContent->SetPixel(8, 6, aPixColorA);
- pWContent->SetPixel(8, 7, aPixColorA);
- pWContent->SetPixel(8, 8, aPixColorA);
pWContent->SetPixel(1, 1, aPixColorB);
pWContent->SetPixel(1, 7, aPixColorB);
@@ -187,6 +155,40 @@ namespace drawinglayer
pWContent->SetPixel(7, 1, aPixColorB);
pWContent->SetPixel(7, 7, aPixColorB);
+ pWMask->SetPixel(0, 0, aMaskColor);
+ pWMask->SetPixel(0, 1, aMaskColor);
+ pWMask->SetPixel(0, 2, aMaskColor);
+ pWMask->SetPixel(0, 3, aMaskColor);
+ pWMask->SetPixel(0, 4, aMaskColor);
+ pWMask->SetPixel(0, 5, aMaskColor);
+ pWMask->SetPixel(0, 6, aMaskColor);
+ pWMask->SetPixel(0, 7, aMaskColor);
+ pWMask->SetPixel(0, 8, aMaskColor);
+ pWMask->SetPixel(1, 0, aMaskColor);
+ pWMask->SetPixel(1, 8, aMaskColor);
+ pWMask->SetPixel(2, 0, aMaskColor);
+ pWMask->SetPixel(2, 8, aMaskColor);
+ pWMask->SetPixel(3, 0, aMaskColor);
+ pWMask->SetPixel(3, 8, aMaskColor);
+ pWMask->SetPixel(4, 0, aMaskColor);
+ pWMask->SetPixel(4, 8, aMaskColor);
+ pWMask->SetPixel(5, 0, aMaskColor);
+ pWMask->SetPixel(5, 8, aMaskColor);
+ pWMask->SetPixel(6, 0, aMaskColor);
+ pWMask->SetPixel(6, 8, aMaskColor);
+ pWMask->SetPixel(7, 0, aMaskColor);
+ pWMask->SetPixel(7, 8, aMaskColor);
+ pWMask->SetPixel(8, 0, aMaskColor);
+ pWMask->SetPixel(8, 1, aMaskColor);
+ pWMask->SetPixel(8, 2, aMaskColor);
+ pWMask->SetPixel(8, 3, aMaskColor);
+ pWMask->SetPixel(8, 4, aMaskColor);
+ pWMask->SetPixel(8, 5, aMaskColor);
+ pWMask->SetPixel(8, 6, aMaskColor);
+ pWMask->SetPixel(8, 7, aMaskColor);
+ pWMask->SetPixel(8, 8, aMaskColor);
+
+
aContent.ReleaseAccess(pWContent);
aMask.ReleaseAccess(pWMask);