From 1da40f1ac8ae348d5f34998d6b4c879e483efc82 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 6 Sep 2015 17:55:36 +0300 Subject: [PATCH] Improved icons drawing - up to 2x faster and without fs stressing --- MineOS/OS.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MineOS/OS.lua b/MineOS/OS.lua index dd2de12b..4cb22c22 100644 --- a/MineOS/OS.lua +++ b/MineOS/OS.lua @@ -137,9 +137,9 @@ end -- НАРИСОВАТЬ ВЫДЕЛЕНИЕ ИКОНКИ local function drawIconSelection(x, y, nomer) if obj["DesktopIcons"][nomer][6] == true then - ecs.square(x - 2, y, widthOfIcon, heightOfIcon, iconsSelectionColor) + ecs.square(x, y, widthOfIcon, heightOfIcon, iconsSelectionColor) elseif obj["DesktopIcons"][nomer][6] == false then - ecs.square(x - 2, y, widthOfIcon, heightOfIcon, background) + ecs.square(x, y, widthOfIcon, heightOfIcon, background) end end