diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-05-06 13:57:36 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-05-17 10:38:25 +0200 |
commit | 9e35b5a70844c8a0f6bc8e9dd8e0055cf5597b07 (patch) | |
tree | 817ad5c379818e8fd165b3585511a11ad3e13001 /vcl/osx | |
parent | 06b46104cc8b35e668e4b1a6d26a6a8e828fe373 (diff) |
handle CG state save/restore in ContextHolder class
Change-Id: I44ee257a8a196e8f2372dd01776c0c7c5193ad0a
Reviewed-on: https://gerrit.libreoffice.org/72436
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index 575abc976f8c..ad1362d438de 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -303,7 +303,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, if( ! CheckContext() ) return false; - CGContextSaveGState( maContextHolder.get() ); + maContextHolder.saveState(); tools::Rectangle buttonRect = rControlRegion; HIRect rc = ImplGetHIRectFromRectangle(buttonRect); @@ -986,7 +986,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, default: break; } - CGContextRestoreGState( maContextHolder.get() ); + maContextHolder.restoreState(); /* #i90291# in most cases invalidating the whole control region instead of just the unclipped part of it is sufficient (and probably faster). |