diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-01-15 12:40:28 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-01-17 00:17:02 +0200 |
commit | 48969eb444e1d89603c4dc1b80e2dc7c41ec9630 (patch) | |
tree | c0ac3f96850e493392837fb0623e5f9dd7eaf8d5 | |
parent | d1ba55a28cd40134356faf3e01971491086591d9 (diff) |
Move SvpSalGraphics::SetVirDevGraphics() for iOS out of the header for clarity
Change-Id: I88c0ed27a492b57a0258a7ec211109a9e2552b99
-rw-r--r-- | vcl/headless/svpgdi.cxx | 11 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 7 |
2 files changed, 12 insertions, 6 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index aef1908aecdc..9e243a222294 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -732,4 +732,15 @@ bool SvpSalGraphics::supportsOperation( OutDevSupportType ) const return false; } +#ifdef IOS + +void SvpSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContext, int /* nBitmapDepth */ ) +{ + mxLayer = xLayer; + mrContext = xContext; + mbForeignContext = xContext != NULL; +}; + +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index da60ef5b67af..1e76503ca4c1 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -236,12 +236,7 @@ public: virtual SystemFontData GetSysFontData( int nFallbacklevel ) const; #ifdef IOS - void SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContext, int = 0 ) - { - mxLayer = xLayer; - mrContext = xContext; - mbForeignContext = xContext != NULL; - }; + void SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContext, int = 0 ); bool CheckContext(); CGContextRef GetContext(); |