This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 557c3fe1c2e279c490614127ddc23b8d01628e79
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 12:59:55 2026 -0500

    vcl: keep macOS XOR drawing on the mask after a window's layer is remade
    
    A resize during XOR mode left the remaining XOR drawing on the window
    itself(!), where it could not be XORed away again.
---
 main/vcl/aqua/source/gdi/salgdiutils.cxx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/main/vcl/aqua/source/gdi/salgdiutils.cxx 
b/main/vcl/aqua/source/gdi/salgdiutils.cxx
index eb281d719d..27fa18acfd 100644
--- a/main/vcl/aqua/source/gdi/salgdiutils.cxx
+++ b/main/vcl/aqua/source/gdi/salgdiutils.cxx
@@ -224,7 +224,14 @@ bool AquaSalGraphics::CheckContext()
 
                                // re-enable XOR emulation for the new context
                                if( mpXorEmulation )
+                               {
                                        mpXorEmulation->SetTarget( mnWidth, 
mnHeight, mnBitmapDepth, mrContext, maLayer.get() );
+                                       if( mpXorEmulation->IsEnabled() )
+                                       {
+                                               mrContext = 
mpXorEmulation->GetMaskContext();
+                                               SetState();
+                                       }
+                               }
             }
         }
 

Reply via email to