diff options
author | John Ankarström <john@ankarstrom.se> | 2020-10-23 01:25:14 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-10-23 01:25:14 +0200 |
commit | a2e0cf3af7b7b2af24f157c3092a382e8fddec15 (patch) | |
tree | 8418b691dccb6eb8f833efa0ebf494b3ebd0c9c0 /drm.ahk | |
parent | 1500b520889f9952201f1401001479a51e7cbd29 (diff) | |
download | drm-a2e0cf3af7b7b2af24f157c3092a382e8fddec15.tar.gz |
release 1.3.1
Diffstat (limited to 'drm.ahk')
-rw-r--r-- | drm.ahk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |