Improved icons drawing - up to 2x faster and without fs stressing

This commit is contained in:
Igor Timofeev 2015-09-06 17:55:36 +03:00
parent 3777c70651
commit 1da40f1ac8

View File

@ -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