summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/inc/quartz/salvd.h3
-rw-r--r--vcl/quartz/salvd.cxx12
2 files changed, 15 insertions, 0 deletions
diff --git a/vcl/inc/quartz/salvd.h b/vcl/inc/quartz/salvd.h
index e1d1d5137c33..e3c68ab9ff10 100644
--- a/vcl/inc/quartz/salvd.h
+++ b/vcl/inc/quartz/salvd.h
@@ -61,6 +61,9 @@ public:
virtual SalGraphics* AcquireGraphics() SAL_OVERRIDE;
virtual void ReleaseGraphics( SalGraphics* pGraphics ) SAL_OVERRIDE;
virtual bool SetSize( long nNewDX, long nNewDY ) SAL_OVERRIDE;
+
+ virtual long GetWidth() const SAL_OVERRIDE;
+ virtual long GetHeight() const SAL_OVERRIDE;
};
#endif // INCLUDED_VCL_INC_QUARTZ_SALVD_H
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: */