aboutsummaryrefslogtreecommitdiff
path: root/drm.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'drm.ahk')
-rw-r--r--drm.ahk4
1 files changed, 2 insertions, 2 deletions
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