PyTuple_GetPointer introduced

This commit is contained in:
d1str4ught
2025-08-27 13:22:41 +02:00
parent 4e6a7f1b08
commit 4385a2c709
7 changed files with 36 additions and 45 deletions

View File

@@ -82,12 +82,12 @@ PyObject* grpImageGenerateExpanded(PyObject* poSelf, PyObject* poArgs)
PyObject* grpImageGenerateFromHandle(PyObject * poSelf, PyObject* poArgs)
{
unsigned long long iHandle;
if (!PyTuple_GetUnsignedLongLong(poArgs, 0, &iHandle))
CGraphicImage* iHandle;
if (!PyTuple_GetPointer(poArgs, 0, &iHandle))
return Py_BadArgument();
CGraphicImageInstance * pImageInstance = CGraphicImageInstance::New();
pImageInstance->SetImagePointer((CGraphicImage *)iHandle);
pImageInstance->SetImagePointer(iHandle);
return Py_BuildValue("K", pImageInstance);
}