summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-07-31 22:10:19 +0300
committerTor Lillqvist <tml@iki.fi>2012-07-31 22:19:38 +0300
commit16ae7484b03149345751b7804cbc9ce3180565ec (patch)
tree940f0c4b46bf3a4aef645dbae8007535711937bb /vcl
parent28a48f2aab4aa32ce8a7d46b8b5e6f26b732afd3 (diff)
Add declaration of the very deprecated FMGetATSFontRefFromFont
Change-Id: I6a1b0ee2e7e012080774d29ea6ea5db5e9229d82
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx6
-rw-r--r--vcl/aqua/source/gdi/atsui/salgdi.cxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx b/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
index c56ac0d901ee..346fd6bfba60 100644
--- a/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
+++ b/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
@@ -201,6 +201,12 @@ static void UpdateAttributesFromPSName( const String& rPSName, ImplDevFontAttrib
// -----------------------------------------------------------------------
+#if MACOSX_SDK_VERSION >= 1070
+extern "C" {
+extern ATSFontRef FMGetATSFontRefFromFont(FMFont iFont);
+}
+#endif
+
static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDFA )
{
// all ATSU fonts are device fonts that can be directly rotated
diff --git a/vcl/aqua/source/gdi/atsui/salgdi.cxx b/vcl/aqua/source/gdi/atsui/salgdi.cxx
index 18fe982c73e0..cd6824560842 100644
--- a/vcl/aqua/source/gdi/atsui/salgdi.cxx
+++ b/vcl/aqua/source/gdi/atsui/salgdi.cxx
@@ -128,6 +128,12 @@ inline FourCharCode GetTag(const char aTagName[5])
static unsigned GetUShort( const unsigned char* p ){return((p[0]<<8)+p[1]);}
static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)+(p[2]<<8)+p[3]);}
+#if MACOSX_SDK_VERSION >= 1070
+extern "C" {
+extern ATSFontRef FMGetATSFontRefFromFont(FMFont iFont);
+}
+#endif
+
const ImplFontCharMap* ImplMacFontData::GetImplFontCharMap() const
{
// return the cached charmap