We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be5bccd commit 9484f8eCopy full SHA for 9484f8e
gui/tooltips.lua
@@ -168,7 +168,7 @@ function GetScreenCoordinates(map_coord)
168
if not map_coord then return end
169
-- -> map viewport offset
170
local vp = df.global.world.viewport
171
- local vp_Coord = vp.window_x -- is actually coord
+ local vp_Coord = vp.corner
172
local map_offset_by_vp = {
173
x = map_coord.x - vp_Coord.x,
174
y = map_coord.y - vp_Coord.y,
@@ -205,7 +205,7 @@ function TooltipsVizualizer:onRenderFrame(dc, rect)
205
end
206
207
208
- local topleft = vp.window_x
+ local topleft = vp.corner
209
local width = vp.max_x
210
local height = vp.max_y
211
local bottomright = {x = topleft.x + width, y = topleft.y + height, z = topleft.z}
0 commit comments