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 --- CHANGELOG.txt | 5 +++-- drm.ahk | 4 ++-- drm.exe | Bin 836608 -> 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 Binary files a/drm.exe and b/drm.exe differ -- cgit v1.2.3