Corrected a typo introduced on 2016-02-12

There was an attempt to create version 10, which went back and forth,
and something went wrong in the middle.
This commit is contained in:
joten 2017-12-27 14:31:15 +01:00
parent f529d9b008
commit 1ec7c176d7
2 changed files with 2 additions and 1 deletions

BIN
bugn.exe

Binary file not shown.

View File

@ -244,7 +244,8 @@ Window_move(wndId, x, y, width, height) {
Local wndMinMax, WM_ENTERSIZEMOVE, WM_EXITSIZEMOVE
Local wndH, wndW, wndX, wndY
If Not wndId Window_getPosEx(wndId, wndX, wndY, wndW, wndH) And (Abs(wndX - x) < 2 And Abs(wndY - y) < 2 And Abs(wndW - width) < 2 And Abs(wndH - height) < 2)
;; Check, if the window has already the given position and size and no action is required.
If Not wndId Or Window_getPosEx(wndId, wndX, wndY, wndW, wndH) And (Abs(wndX - x) < 2 And Abs(wndY - y) < 2 And Abs(wndW - width) < 2 And Abs(wndH - height) < 2)
Return, 0
If Window_isHung(wndId) {