More pyvalue pointers
This commit is contained in:
@@ -17,7 +17,7 @@ bool PyTuple_GetTextInstance(PyObject* poArgs, int pos, CGraphicTextInstance** p
|
||||
PyObject* grpTextGenerate(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
CGraphicTextInstance * pTextInstance = CGraphicTextInstance::New();
|
||||
return Py_BuildValue("i", pTextInstance);
|
||||
return Py_BuildValue("K", pTextInstance);
|
||||
}
|
||||
|
||||
PyObject* grpTextDestroy(PyObject* poSelf, PyObject* poArgs)
|
||||
|
||||
@@ -20,7 +20,7 @@ PyObject* grpThingGenerate(PyObject* poSelf, PyObject* poArgs)
|
||||
return Py_BuildException();
|
||||
|
||||
if (strlen(szFileName) <= 0)
|
||||
return Py_BuildValue("i", 0);
|
||||
return Py_BuildValue("K", 0);
|
||||
|
||||
CResource* pResource = CResourceManager::Instance().GetResourcePointer(szFileName);
|
||||
|
||||
@@ -32,7 +32,7 @@ PyObject* grpThingGenerate(PyObject* poSelf, PyObject* poArgs)
|
||||
pThingInstance->ReserveModelInstance(1);
|
||||
pThingInstance->RegisterModelThing(0, static_cast<CGraphicThing*>(pResource));
|
||||
pThingInstance->SetModelInstance(0, 0, 0);
|
||||
return Py_BuildValue("i", pThingInstance);
|
||||
return Py_BuildValue("K", pThingInstance);
|
||||
}
|
||||
|
||||
PyObject* grpThingDelete(PyObject* poSelf, PyObject* poArgs)
|
||||
|
||||
@@ -282,7 +282,7 @@ PyObject * itemGetIconInstance(PyObject * poSelf, PyObject * poArgs)
|
||||
CGraphicImageInstance * pImageInstance = CGraphicImageInstance::New();
|
||||
pImageInstance->SetImagePointer(pImage);
|
||||
|
||||
return Py_BuildValue("i", pImageInstance);
|
||||
return Py_BuildValue("K", pImageInstance);
|
||||
}
|
||||
|
||||
PyObject * itemDeleteIconInstance(PyObject * poSelf, PyObject * poArgs)
|
||||
|
||||
Reference in New Issue
Block a user