From 77918bf4351cc5c14da64bfeb8e7f548be95dd5e Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Fri, 21 Aug 2015 17:09:33 +0300 Subject: [PATCH] Update ECSAPI.lua --- lib/ECSAPI.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ECSAPI.lua b/lib/ECSAPI.lua index 9fc495e0..215eaa0c 100644 --- a/lib/ECSAPI.lua +++ b/lib/ECSAPI.lua @@ -79,10 +79,10 @@ function ECSAPI.setScale(scale, debug) local newWidth, newHeight if proportion >= 1 then - newWidth = math.floor(xMax * percent) + newWidth = math.floor(xMax * scale) newHeight = math.floor(newWidth / proportion / 2) else - newHeight = math.floor(yMax * percent) + newHeight = math.floor(yMax * scale) newWidth = math.floor(newHeight * proportion * 2) end @@ -1123,7 +1123,7 @@ end -- if not success then ECSAPI.displayCompileMessage(1, reason, true) end -- ECSAPI.select("auto", "auto", " ", {{"С твоим компом опять хуйня!"}}, {{"Блядь!"}}) -- ECSAPI.error("Да иди ты на хуй, чмо, я мать твою на хую") -ECSAPI.setScale(1) +-- ECSAPI.setScale(1) return ECSAPI