[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - vcl/inc vcl/quartz
Markus Mohrhard
markus.mohrhard at googlemail.com
Thu Dec 4 01:08:27 PST 2014
vcl/inc/quartz/salvd.h | 3 +++
vcl/quartz/salvd.cxx | 12 ++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit 46d892bfb7c406a8125514735ef700d7765ba452
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Nov 30 18:48:33 2014 +0100
implement virtual methods for OSX vcl backend
Change-Id: Ifd7e06529cbf2e20bdd1560586420cda39c5a50c
diff --git a/vcl/inc/quartz/salvd.h b/vcl/inc/quartz/salvd.h
index e1d1d51..e3c68ab 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 a524c1e..ceb7e9b 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: */
More information about the Libreoffice-commits
mailing list