mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Fix more OGL float/int conversion issues
Fixes: https://github.com/wxWidgets/Phoenix/issues/2739
This commit is contained in:
@@ -3444,7 +3444,7 @@ class EllipseShape(Shape):
|
||||
dc.SetPen(self._pen)
|
||||
if self._brush:
|
||||
dc.SetBrush(self._brush)
|
||||
dc.DrawEllipse(int(self._xpos - self.GetWidth() / 2.0), int(self._ypos - self.GetHeight() / 2.0), self.GetWidth(), self.GetHeight())
|
||||
dc.DrawEllipse(int(self._xpos - self.GetWidth() / 2.0), int(self._ypos - self.GetHeight() / 2.0), int(self.GetWidth()), int(self.GetHeight()))
|
||||
|
||||
def SetSize(self, x, y, recursive = True):
|
||||
"""
|
||||
|
||||
@@ -275,7 +275,7 @@ class OpPolyDraw(DrawOp):
|
||||
|
||||
def Scale(self, scaleX, scaleY):
|
||||
for i in range(self._noPoints):
|
||||
self._points[i] = wx.Point(self._points[i][0] * scaleX, self._points[i][1] * scaleY)
|
||||
self._points[i] = wx.Point(int(self._points[i][0] * scaleX), int(self._points[i][1] * scaleY))
|
||||
|
||||
def Translate(self, x, y):
|
||||
for i in range(self._noPoints):
|
||||
|
||||
Reference in New Issue
Block a user