summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-30 18:48:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-30 18:48:33 +0100
commitfd08b876304a6bd802687555e90a26ddac5fa337 (patch)
tree3a9fe5ebe2a618b5508983471ac6e7a60378698f
parentWerror, Wunused-variable (diff)
downloadcore-private/moggi/vcl-opengl3.tar.gz
core-private/moggi/vcl-opengl3.zip
implement virtual methods for OSX vcl backend private/moggi/vcl-opengl3
Change-Id: Ifd7e06529cbf2e20bdd1560586420cda39c5a50c
-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: */