summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordas <das>2006-05-16 07:58:09 (GMT)
committerdas <das>2006-05-16 07:58:09 (GMT)
commit66be2b0aca94a837a573e450a565f1bf74a3519b (patch)
treec0833b1e329de728066b7ff2facc30d77eff2f19 /macosx
parent47ca172c1b298865428bf1034f3156136fee89cb (diff)
downloadtk-66be2b0aca94a837a573e450a565f1bf74a3519b.zip
tk-66be2b0aca94a837a573e450a565f1bf74a3519b.tar.gz
tk-66be2b0aca94a837a573e450a565f1bf74a3519b.tar.bz2
fix building on Jaguar
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXFont.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 49ed451..403a903 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -35,7 +35,7 @@
* that such fonts can not be used for controls, because controls
* definitely require a family id (this assertion needs testing).
*
- * RCS: @(#) $Id: tkMacOSXFont.c,v 1.17 2006/04/11 10:19:51 das Exp $
+ * RCS: @(#) $Id: tkMacOSXFont.c,v 1.18 2006/05/16 07:58:09 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -47,6 +47,14 @@
#endif
*/
+/* Define macros only available on Mac OS X 10.3 or later */
+#ifndef FixedToInt
+#define FixedToInt(a) ((short)(((Fixed)(a) + fixed1/2) >> 16))
+#endif
+#ifndef IntToFixed
+#define IntToFixed(a) ((Fixed)(a) << 16)
+#endif
+
/*
* Problem: The sum of two parts is not the same as the whole. In particular
* the width of two separately measured strings will usually be larger than