Merge pull request #9651 from Thalpy/Thalpy-patch-1

[Upstream migration] Fixes widescreen tooltips
This commit is contained in:
kevinz000
2019-10-29 21:23:55 -07:00
committed by GitHub
+2 -2
View File
@@ -122,8 +122,8 @@
//Get the real icon size according to the client view
var mapWidth = map['view-size'].x,
mapHeight = map['view-size'].y,
tilesShown = tooltip.client_view_w
realIconSize = mapWidth / tilesShown,
tilesShown = tooltip.client_view_h
realIconSize = mapHeight / tilesShown,
resizeRatio = realIconSize / tooltip.tileSize,
//Calculate letterboxing offsets
leftOffset = (map.size.x - mapWidth) / 2,