Kaydet (Commit) df34cf12 authored tarafından Jack Jansen's avatar Jack Jansen

Fixed macos.splash to actually *draw* the splash box:-)

üst 0bdf979a
...@@ -500,15 +500,19 @@ static char splash_doc[] = "Open a splash-screen dialog by resource-id (0=close) ...@@ -500,15 +500,19 @@ static char splash_doc[] = "Open a splash-screen dialog by resource-id (0=close)
static PyObject * static PyObject *
MacOS_splash(PyObject *self, PyObject *args) MacOS_splash(PyObject *self, PyObject *args)
{ {
int resid; int resid = -1;
static DialogPtr curdialog; static DialogPtr curdialog;
if (!PyArg_ParseTuple(args, "i", &resid)) if (!PyArg_ParseTuple(args, "|i", &resid))
return NULL; return NULL;
if (curdialog) if (curdialog)
DisposeDialog(curdialog); DisposeDialog(curdialog);
curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1); if ( resid != -1 ) {
curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1);
if ( curdialog )
DrawDialog(curdialog);
}
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment