Just return 0 from GetPixel if on wxGTK3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-05-02 01:01:17 +00:00
parent d6b60e92bd
commit 6d4555b60f

View File

@@ -80,8 +80,12 @@ def run():
c.find('GetPixel').ignore() # We need to add a typcast
c.addCppMethod('wxIntPtr', 'GetPixel', '()', """\
return (wxIntPtr)self->GetPixel();
""")
#ifdef __WXGTK3__
return 0;
#else
return (wxIntPtr)self->GetPixel();
#endif
""")
# Set a flag on the return value and parameter types that are 'unsigned char'
# such that they will be treated as an integer instead of a string.