X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/195a89b47ca188d6f16412c8227daf4bef711505..0d2c9713ecc2a9b0d98d9710940018002aaaaed2:/wxPython/src/mac/_gdi_wrap.cpp?ds=sidebyside diff --git a/wxPython/src/mac/_gdi_wrap.cpp b/wxPython/src/mac/_gdi_wrap.cpp index f4bb8e7029..e0abb640fc 100644 --- a/wxPython/src/mac/_gdi_wrap.cpp +++ b/wxPython/src/mac/_gdi_wrap.cpp @@ -6702,6 +6702,8 @@ SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self) int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + Py_ssize_t temp3 ; + Py_ssize_t temp5 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -6722,11 +6724,13 @@ SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self) } arg2 = static_cast< int >(val2); { - if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail; + if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; + arg4 = (int)temp3; } { if (obj3 != Py_None) { - if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &arg6) == -1) SWIG_fail; + if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; + arg6 = (int)temp5; } } { @@ -6751,6 +6755,7 @@ SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyO int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + Py_ssize_t temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -6770,7 +6775,8 @@ SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyO } arg2 = static_cast< int >(val2); { - if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail; + if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; + arg4 = (int)temp3; } { result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); @@ -6794,6 +6800,7 @@ SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + Py_ssize_t temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -6813,7 +6820,8 @@ SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), } arg2 = static_cast< int >(val2); { - if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail; + if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; + arg4 = (int)temp3; } { result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); @@ -33115,6 +33123,9 @@ SWIGEXPORT void SWIG_init(void) { wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); + SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default))); + SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight))); + SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft))); SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));