]> git.saurik.com Git - wxWidgets.git/commit
OGL patch from Shane Holloway:
authorRobin Dunn <robin@alldunn.com>
Wed, 10 Nov 2004 18:14:45 +0000 (18:14 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 10 Nov 2004 18:14:45 +0000 (18:14 +0000)
commitca8071ca9ffe47beab63b5a0070ccd463ed00dd1
treec8e89bdbc9fb39c8f0ddc58c4e074c908a1fd60e
parentb40a6748eb6c815cb046127b642f225f8d2030cf
OGL patch from Shane Holloway:

    Two simple problems found in the new python ogl code.  First is
    the patch for _canvas.py.  Essentially:

        dx = abs(dc.LogicalToDeviceX(x - self._firstDragX))
        dy = abs(dc.LogicalToDeviceY(y - self._firstDragY))

    was incorrect because (x,y) and (self._firstDragX,
    self._firstDragY) are both already in Logical coordinates.
    Therefore the difference between the two is also in logical
    coordinates, and the conversion call is an error.  This bug
    surfaces when you have OGL on a scrollwin, and you are far from
    the origin of the canvas.

    The second change in _composit.py basically removes the assumption
    that the child is in both self._children and self._divisions.
    Causes many problems when it's not.  ;)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
wxPython/docs/CHANGES.txt
wxPython/wx/lib/ogl/_canvas.py
wxPython/wx/lib/ogl/_composit.py