From c3a530e53d98d8a8bf06879febe159a09e02bf7b Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sat, 29 Aug 2015 23:03:14 +0300 Subject: [PATCH] Update image.lua --- lib/image.lua | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lib/image.lua b/lib/image.lua index 8ddc30f8..dc9df9f0 100644 --- a/lib/image.lua +++ b/lib/image.lua @@ -352,34 +352,6 @@ function image.draw(x, y, kartinka) end end -function image.rememberOldPixels(x, y, x2, y2) - local oldPixels = {} - oldPixels.x = x - oldPixels.y = y - oldPixels.image = {} - - local xCounter, yCounter = 1, 1 - for j = y, y2 do - xCounter = 1 - oldPixels.image[j] = {} - for i = x, x2 do - local symbol, fore, back = gpu.get(xCounter, yCounter) - oldPixels.image[j][i] = { back, fore, symbol } - symbol, fore, back = nil, nil, nil - xCounter = xCounter + 1 - end - yCounter = yCounter + 1 - end - - xCounter, yCounter = nil, nil - - return oldPixels -end - -function image.drawOldPixels(oldPixels) - drawPNG(oldPixels.x, oldPixels.y, convertImagetoGroupedImage(oldPixels.image)) -end - --------------------------------------------------------------------------------------------------------------------- -- ecs.prepareToExit()