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