LuaDrawing.wiki
changeset 378 4793d4b4e6be
parent 269 3282541a4491
child 595 d5647149658e
--- a/LuaDrawing.wiki	Fri Jan 17 16:39:40 2014 +0000
+++ b/LuaDrawing.wiki	Mon Jan 20 08:07:59 2014 +0000
@@ -13,9 +13,9 @@
 function AddPoint(x, y, width, erase)
     PointsBuffer = PointsBuffer .. string.char(band(x,0xff00) / 256 , band(x,0xff) , band(y,0xff00) / 256 , band(y,0xff))
     if width then
-        width = bor(size,0x80)
+        width = bor(width,0x80)
         if erase then
-            width = bor(size,0x40)
+            width = bor(width,0x40)
         end
         PointsBuffer = PointsBuffer .. string.char(width)
     else