From f3d2e64e9220d34959ced759ea3a6fa71cbd660e Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Fri, 21 Aug 2015 17:07:58 +0300 Subject: [PATCH] Update ECSAPI.lua --- lib/ECSAPI.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ECSAPI.lua b/lib/ECSAPI.lua index 3c1fe2bf..9fc495e0 100644 --- a/lib/ECSAPI.lua +++ b/lib/ECSAPI.lua @@ -68,7 +68,7 @@ function ECSAPI.setScale(scale, debug) end --Собсна, арсчет масштаба - local xScreens, yScreens = screen.getAspectRatio() + local xScreens, yScreens = component.screen.getAspectRatio() local xPixels, yPixels = calculateAspect(xScreens), calculateAspect(yScreens) @@ -1123,5 +1123,7 @@ end -- if not success then ECSAPI.displayCompileMessage(1, reason, true) end -- ECSAPI.select("auto", "auto", " ", {{"С твоим компом опять хуйня!"}}, {{"Блядь!"}}) -- ECSAPI.error("Да иди ты на хуй, чмо, я мать твою на хую") +ECSAPI.setScale(1) + return ECSAPI