forked from metin2/client
fix: Order of functions.
This commit is contained in:
parent
c2bb219493
commit
7c4bd90e29
@ -3,6 +3,18 @@
|
|||||||
#include "PythonSlotWindow.h"
|
#include "PythonSlotWindow.h"
|
||||||
#include "PythonGridSlotWindow.h"
|
#include "PythonGridSlotWindow.h"
|
||||||
|
|
||||||
|
bool PyTuple_GetWindow(PyObject* poArgs, int pos, UI::CWindow ** ppRetWindow)
|
||||||
|
{
|
||||||
|
int iHandle;
|
||||||
|
if (!PyTuple_GetInteger(poArgs, pos, &iHandle))
|
||||||
|
return false;
|
||||||
|
if (!iHandle)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
*ppRetWindow = (UI::CWindow*)iHandle;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(__BL_CLIP_MASK__)
|
#if defined(__BL_CLIP_MASK__)
|
||||||
PyObject* wndMgrSetClippingMaskRect(PyObject* poSelf, PyObject* poArgs)
|
PyObject* wndMgrSetClippingMaskRect(PyObject* poSelf, PyObject* poArgs)
|
||||||
{
|
{
|
||||||
@ -39,18 +51,6 @@ PyObject* wndMgrSetClippingMaskWindow(PyObject* poSelf, PyObject* poArgs)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool PyTuple_GetWindow(PyObject* poArgs, int pos, UI::CWindow ** ppRetWindow)
|
|
||||||
{
|
|
||||||
int iHandle;
|
|
||||||
if (!PyTuple_GetInteger(poArgs, pos, &iHandle))
|
|
||||||
return false;
|
|
||||||
if (!iHandle)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
*ppRetWindow = (UI::CWindow*)iHandle;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
PyObject * wndMgrGetAspect(PyObject * poSelf, PyObject * poArgs)
|
PyObject * wndMgrGetAspect(PyObject * poSelf, PyObject * poArgs)
|
||||||
{
|
{
|
||||||
return Py_BuildValue("f", UI::CWindowManager::Instance().GetAspect());
|
return Py_BuildValue("f", UI::CWindowManager::Instance().GetAspect());
|
||||||
|
Loading…
Reference in New Issue
Block a user