diff options
-rw-r--r-- | macosx/tkMacOSXFont.c | 10 |
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 |