X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f6eb0606be607c176121ad4ae272e3112f44eb..db679b8c836e69c111cdc31e62cf92cebe4f938f:/wxPython/wx/lib/ogl/_bmpshape.py?ds=inline diff --git a/wxPython/wx/lib/ogl/_bmpshape.py b/wxPython/wx/lib/ogl/_bmpshape.py index 8a12d85a04..c239aab6dd 100644 --- a/wxPython/wx/lib/ogl/_bmpshape.py +++ b/wxPython/wx/lib/ogl/_bmpshape.py @@ -11,8 +11,6 @@ # Licence: wxWindows license #---------------------------------------------------------------------------- -from __future__ import division - from _basic import RectangleShape @@ -20,14 +18,14 @@ class BitmapShape(RectangleShape): """Draws a bitmap (non-resizable).""" def __init__(self): RectangleShape.__init__(self, 100, 50) - self._filename="" + self._filename = "" def OnDraw(self, dc): if not self._bitmap.Ok(): return - x = self._xpos-self._bitmap.GetWidth() / 2 - y = self._ypos-self._bitmap.GetHeight() / 2 + x = self._xpos - self._bitmap.GetWidth() / 2.0 + y = self._ypos - self._bitmap.GetHeight() / 2.0 dc.DrawBitmap(self._bitmap, x, y, True) def SetSize(self, w, h, recursive = True):