Ensure TextWidget's width and heigth are integer

And removed workarounds in coverbrowser plugin.
This commit is contained in:
poire-z
2017-08-18 17:21:36 +02:00
committed by Frans de Jonge
parent b4e7dc947c
commit cf95f5e8d3
3 changed files with 17 additions and 14 deletions

View File

@@ -41,9 +41,9 @@ function TextWidget:updateSize()
if not tsize then
self._length = 0
else
self._length = tsize.x
self._length = math.ceil(tsize.x)
end
self._height = self.face.size * 1.5
self._height = math.ceil(self.face.size * 1.5)
end
function TextWidget:getSize()