mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user