BlenderKit: Fix a text positioning bug when scaling tooltip down.

This commit is contained in:
Vilém Duha 2020-01-04 00:49:17 +01:00
parent 1fe256ff35
commit 37085aeb2f
1 changed files with 0 additions and 2 deletions

View File

@ -388,9 +388,7 @@ def draw_tooltip(x, y, text='', author='', img=None, gravatar=None):
lines = text.split('\n')
nlines = math.ceil((len(lines) - 1) / ncolumns)
texth = line_height * nlines + nameline_height
isizex = int(512 * scale * img.size[0] / max(img.size[0], img.size[1]))
isizey = int(512 * scale * img.size[1] / max(img.size[0], img.size[1]))