From a2e0cf3af7b7b2af24f157c3092a382e8fddec15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 23 Oct 2020 01:25:14 +0200 Subject: release 1.3.1 --- drm.ahk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drm.ahk') diff --git a/drm.ahk b/drm.ahk index 6a74841..90c2d3f 100644 --- a/drm.ahk +++ b/drm.ahk @@ -122,12 +122,12 @@ Save(ByRef Positions) ; Calculate position relative to right/bottom if necessary Align := 1 ; to align right, this should be divisible by 3; bottom, by 5 - if (x > Width / 2) + if (x > Width - (x + w)) { Align := Align * 3 rx := (Width - (x + w)) / Width } - if (y > Height / 2) + if (y > Height - (y + h)) { Align := Align * 5 ry := (Height - (y + h)) / Height -- cgit v1.2.3