diff --git a/etg/dc.py b/etg/dc.py index 4857ed9c..1c7a49a5 100644 --- a/etg/dc.py +++ b/etg/dc.py @@ -114,7 +114,7 @@ def run(): m = c.find('DrawLabel').findOverload('rectBounding') m.type = 'wxRect*' m.find('rectBounding').ignore() - m.factory = True # a new instance is being created + m.factory = True # a new instance of wxRect is being created m.setCppCode("""\ wxRect rv; self->DrawLabel(*text, *bitmap, *rect, alignment, indexAccel, &rv); @@ -122,6 +122,7 @@ def run(): """) c.addPyCode('DC.DrawImageLabel = wx.deprecated(DC.DrawLabel, "Use DrawLabel instead.")') + # Return the array instead of using an output parameter m = c.find('GetPartialTextExtents') m.type = 'wxArrayInt*'