diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-30 18:48:33 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-02 09:20:25 +0100 |
commit | 3cc833098a090b5ff611051e9da2af94d53d1017 (patch) | |
tree | bd06ff2d759b4d18186ac368ec7827817e9fff52 /vcl/quartz | |
parent | 021089d8ee76baa13f09bbeccf2bdbedc4e9efed (diff) |
implement virtual methods for OSX vcl backend
Change-Id: Ifd7e06529cbf2e20bdd1560586420cda39c5a50c
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salvd.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx index a524c1ed7127..ceb7e9b0db5c 100644 --- a/vcl/quartz/salvd.cxx +++ b/vcl/quartz/salvd.cxx @@ -277,4 +277,16 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY ) return (mxLayer != NULL); } +long AquaSalVirtualDevice::GetWidth() const +{ + const CGSize aSize = CGLayerGetSize( mxLayer ); + return aSize.width; +} + +long AquaSalVirtualDevice::GetHeight() const +{ + const CGSize aSize = CGLayerGetSize( mxLayer ); + return aSize.height; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |