]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/oglmisc.py
adaptions for m_peer
[wxWidgets.git] / wxPython / wx / lib / ogl / oglmisc.py
index d7cfbc824ed2c24485fdadea8ed9d7022d0dd9e9..478f2ee7746edf2db6e0c536a5e0d0add441a18e 100644 (file)
@@ -5,8 +5,8 @@
 #
 # Author:       Pierre Hjälm (from C++ original by Julian Smart)
 #
 #
 # Author:       Pierre Hjälm (from C++ original by Julian Smart)
 #
-# Created:      20040508
-# RCS-ID:       
+# Created:      2004-05-08
+# RCS-ID:       $Id$
 # Copyright:    (c) 2004 Pierre Hjälm - 1998 Julian Smart
 # Licence:      wxWindows license
 #----------------------------------------------------------------------------
 # Copyright:    (c) 2004 Pierre Hjälm - 1998 Julian Smart
 # Licence:      wxWindows license
 #----------------------------------------------------------------------------
@@ -387,7 +387,7 @@ def DrawArcToEllipse(x1, y1, width1, height1, x2, y2, x3, y3):
     E = (A + B)
     F = (C - (2 * A * x1) - (2 * B * x2))
     G = ((A * x1 * x1) + (B * x2 * x2) - (C * x2) + D - 1)
     E = (A + B)
     F = (C - (2 * A * x1) - (2 * B * x2))
     G = ((A * x1 * x1) + (B * x2 * x2) - (C * x2) + D - 1)
-    H = ((y3 - y2) / (x32 - x2))
+    H = ((y3 - y2) / (x2 - x2))
     K = ((F * F) - (4 * E * G))
 
     if K >= 0:
     K = ((F * F) - (4 * E * G))
 
     if K >= 0: