From a49be8f0d1ae9d6308c1ea74e477467d36498246 Mon Sep 17 00:00:00 2001 From: zomo Date: Mon, 21 Jun 2021 22:33:18 -0500 Subject: [PATCH] fix --- examples/coords + screenwriter.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/coords + screenwriter.lua b/examples/coords + screenwriter.lua index bdd0e12..f3e3867 100644 --- a/examples/coords + screenwriter.lua +++ b/examples/coords + screenwriter.lua @@ -45,16 +45,16 @@ function coords_partial_to_screenwriter(pos_px, scale_px, anchor) if anchor == 1 then --top left x_px = pos_px.x + scale_px.x / 2 - y_px = pos_px.y + scale_px.y / 2 + y_px = pos_px.y - scale_px.y / 2 elseif anchor == 2 then --top right x_px = pos_px.x - scale_px.x / 2 - y_px = pos_px.y + scale_px.y / 2 + y_px = pos_px.y - scale_px.y / 2 elseif anchor == 3 then --bottom right x_px = pos_px.x - scale_px.x / 2 - y_px = pos_px.y - scale_px.y / 2 + y_px = pos_px.y + scale_px.y / 2 elseif anchor == 4 then --bottom left x_px = pos_px.x + scale_px.x / 2 - y_px = pos_px.y - scale_px.y / 2 + y_px = pos_px.y + scale_px.y / 2 else --center x_px = pos_px.x y_px = pos_px.y