Skip to content

Commit

Permalink
wxpyimgview: explicit conversion to int (#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason authored and landam committed Jun 6, 2023
1 parent aaa0827 commit cabbe8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/wxpyimgview/wxpyimgview_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def erase(self, ev):
def draw(self):
app = self.app
size = self.GetSize()
x0 = (size.GetWidth() - app.i_width) / 2
y0 = (size.GetHeight() - app.i_height) / 2
x0 = (size.GetWidth() - app.i_width) // 2
y0 = (size.GetHeight() - app.i_height) // 2
dc = wx.PaintDC(self)
data = app.imgbuf.reshape((app.i_height, app.i_width, 4))
data = data[::, ::, 2::-1]
Expand Down

0 comments on commit cabbe8e

Please sign in to comment.