Skip to content

Commit

Permalink
[PicturePlayer] fix division
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jul 17, 2022
1 parent c3cc324 commit 6723c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/Plugins/Extensions/PicturePlayer/ui.py
Expand Up @@ -246,16 +246,16 @@ def __init__(self, session, piclist, lastindex, path):

self.size_w = getDesktop(0).size().width()
self.size_h = getDesktop(0).size().height()
self.thumbsX = self.size_w / (self.spaceX + self.picX) # thumbnails in X
self.thumbsY = self.size_h / (self.spaceY + self.picY) # thumbnails in Y
self.thumbsX = self.size_w // (self.spaceX + self.picX) # thumbnails in X
self.thumbsY = self.size_h // (self.spaceY + self.picY) # thumbnails in Y
self.thumbsC = self.thumbsX * self.thumbsY # all thumbnails

self.positionlist = []
skincontent = ""

posX = -1
for x in range(self.thumbsC):
posY = x / self.thumbsX
posY = x // self.thumbsX
posX += 1
if posX >= self.thumbsX:
posX = 0
Expand Down

0 comments on commit 6723c64

Please sign in to comment.