aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-23 01:25:14 +0200
committerJohn Ankarström <john@ankarstrom.se>2020-10-23 01:25:14 +0200
commita2e0cf3af7b7b2af24f157c3092a382e8fddec15 (patch)
tree8418b691dccb6eb8f833efa0ebf494b3ebd0c9c0
parent1500b520889f9952201f1401001479a51e7cbd29 (diff)
downloaddrm-a2e0cf3af7b7b2af24f157c3092a382e8fddec15.tar.gz
release 1.3.1
-rw-r--r--CHANGELOG.txt5
-rw-r--r--drm.ahk4
-rw-r--r--drm.exebin836608 -> 836608 bytes
3 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index a99765a..a82aff2 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,4 @@
-CHANGELOG ----------------------- 1.3 ---------------------- 2020-04-29
+CHANGELOG ---------------------- 1.3.1 --------------------- 2020-04-29
-NEW: "Configure..." menu option, which opens relevant registry path. \ No newline at end of file
+FIX: Now calculates correctly whether windows with IgnoreSize should be
+ aligned to the right side or bottom of the screen. \ No newline at end of file
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
diff --git a/drm.exe b/drm.exe
index 676dd53..7fecea2 100644
--- a/drm.exe
+++ b/drm.exe
Binary files differ