From 19a75d99a95fdf41ff7222b690797d9c7681a097 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 27 Jan 2019 12:01:03 +0300 Subject: [PATCH] Smoother windows animation --- Libraries/GUI.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/GUI.lua b/Libraries/GUI.lua index 8c4c395b..01dfadbb 100755 --- a/Libraries/GUI.lua +++ b/Libraries/GUI.lua @@ -4275,12 +4275,12 @@ function GUI.windowMaximize(window, animationDisabled) window:addAnimation( function(animation) window.localX, window.localY = - math.floor(fromX + (toX - fromX) * animation.position + 0.5), - math.floor(fromY + (toY - fromY) * animation.position + 0.5) + math.floor(fromX + (toX - fromX) * animation.position), + math.floor(fromY + (toY - fromY) * animation.position) window:resize( - math.floor(fromWidth + (toWidth - fromWidth) * animation.position + 0.5), - math.floor(fromHeight + (toHeight - fromHeight) * animation.position + 0.5), + math.floor(fromWidth + (toWidth - fromWidth) * animation.position), + math.floor(fromHeight + (toHeight - fromHeight) * animation.position), animation.position < 1 ) end,