From a1b79a55d2d70660aa156da460ee2e55ebc99183 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sun, 12 Aug 2012 06:10:27 +0200
Subject: Change how Cairo is presented to Lua scripts.
Makes the whole thing a bit more stable and less weird.
---
share/library/Misc/ground.lua | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'share/library/Misc/ground.lua')
diff --git a/share/library/Misc/ground.lua b/share/library/Misc/ground.lua
index 6d20b57..2209718 100644
--- a/share/library/Misc/ground.lua
+++ b/share/library/Misc/ground.lua
@@ -17,20 +17,20 @@ local terminals = {{0, -1}}
-- Rendering
local render = function (cr)
-- The vertical line
- cr.move_to (0, -1)
- cr.line_to (0, 0.5)
+ cr:move_to (0, -1)
+ cr:line_to (0, 0.5)
-- The horizontal lines
- cr.move_to (-1, 0.5)
- cr.line_to (1, 0.5)
+ cr:move_to (-1, 0.5)
+ cr:line_to (1, 0.5)
- cr.move_to (-0.75, 1.1)
- cr.line_to (0.75, 1.1)
+ cr:move_to (-0.75, 1.1)
+ cr:line_to (0.75, 1.1)
- cr.move_to (-0.5, 1.7)
- cr.line_to (0.5, 1.7)
+ cr:move_to (-0.5, 1.7)
+ cr:line_to (0.5, 1.7)
- cr.stroke ()
+ cr:stroke ()
end
-- Register the symbol
--
cgit v1.2.3