From 54a97ec96ded1c815b95edb2dfad70154b944c0f Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 26 Oct 2015 11:28:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D1=8F=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Camera/Camera.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Camera/Camera.lua b/Applications/Camera/Camera.lua index e35909c4..d9d53f02 100644 --- a/Applications/Camera/Camera.lua +++ b/Applications/Camera/Camera.lua @@ -108,11 +108,11 @@ end local function drawDistanceMeter() local width = 4 local xPos, yPos = widthOfImage - 3 - width, 3 - buffer.fill(xPos, yPos, width + 2, #currentPalette * 2 + 2, 0x000000, 0x000000, " ") + buffer.square(xPos, yPos, width + 2, #currentPalette * 2 + 2, 0x000000, 0x000000, " ") yPos = yPos + 1 xPos = xPos + 1 for i = #currentPalette, 1, -1 do - buffer.fill(xPos, yPos, width, 2, currentPalette[i], 0x000000, " ") + buffer.square(xPos, yPos, width, 2, currentPalette[i], 0x000000, " ") yPos = yPos + 2 end end @@ -123,7 +123,7 @@ buffer.start() gui() ecs.square(1, 2, widthOfImage, heightOfImage - 1, 0x000000) -buffer.fill(1, 2, widthOfImage, heightOfImage - 1, 0x000000, 0x000000, " ") +buffer.square(1, 2, widthOfImage, heightOfImage - 1, 0x000000, 0x000000, " ") capture(1, 1) drawDistanceMeter() buffer.draw()