summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/fm/Fmmodule.c36
-rw-r--r--Mac/Modules/fm/fmscan.py5
2 files changed, 5 insertions, 36 deletions
diff --git a/Mac/Modules/fm/Fmmodule.c b/Mac/Modules/fm/Fmmodule.c
index 0a07267..0469b6c 100644
--- a/Mac/Modules/fm/Fmmodule.c
+++ b/Mac/Modules/fm/Fmmodule.c
@@ -281,38 +281,6 @@ static PyObject *Fm_GetAppFont(PyObject *_self, PyObject *_args)
return _res;
}
-static PyObject *Fm_SetAntiAliasedTextEnabled(PyObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSStatus _err;
- Boolean iEnable;
- SInt16 iMinFontSize;
- if (!PyArg_ParseTuple(_args, "bh",
- &iEnable,
- &iMinFontSize))
- return NULL;
- _err = SetAntiAliasedTextEnabled(iEnable,
- iMinFontSize);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *Fm_IsAntiAliasedTextEnabled(PyObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- Boolean _rv;
- SInt16 oMinFontSize;
- if (!PyArg_ParseTuple(_args, ""))
- return NULL;
- _rv = IsAntiAliasedTextEnabled(&oMinFontSize);
- _res = Py_BuildValue("bh",
- _rv,
- oMinFontSize);
- return _res;
-}
-
static PyMethodDef Fm_methods[] = {
#if !TARGET_API_MAC_CARBON
@@ -357,10 +325,6 @@ static PyMethodDef Fm_methods[] = {
"() -> (short _rv)"},
{"GetAppFont", (PyCFunction)Fm_GetAppFont, 1,
"() -> (short _rv)"},
- {"SetAntiAliasedTextEnabled", (PyCFunction)Fm_SetAntiAliasedTextEnabled, 1,
- "(Boolean iEnable, SInt16 iMinFontSize) -> None"},
- {"IsAntiAliasedTextEnabled", (PyCFunction)Fm_IsAntiAliasedTextEnabled, 1,
- "() -> (Boolean _rv, SInt16 oMinFontSize)"},
{NULL, NULL, 0}
};
diff --git a/Mac/Modules/fm/fmscan.py b/Mac/Modules/fm/fmscan.py
index 02f8ec2..6ade547 100644
--- a/Mac/Modules/fm/fmscan.py
+++ b/Mac/Modules/fm/fmscan.py
@@ -36,6 +36,11 @@ class MyScanner(Scanner):
"AntiTextSetEnabled",
"AntiTextGetApplicationAware",
"AntiTextSetApplicationAware",
+ # These are tricky: they're not Carbon dependent or anything, but they
+ # exist only on 8.6 or later (both in Carbon and Classic).
+ # Disabling them is the easiest path.
+ 'SetAntiAliasedTextEnabled',
+ 'IsAntiAliasedTextEnabled',
]
def makegreylist(self):