From e926bd6d6b54540a7265761cf6ac9ea1aaef786d Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Tue, 21 Mar 2023 21:26:33 +0100 Subject: [PATCH] Fix #11 gpu.drawLine being offset --- Capy64/Runtime/Libraries/GPU.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Capy64/Runtime/Libraries/GPU.cs b/Capy64/Runtime/Libraries/GPU.cs index 1dd745d..5e97b8b 100644 --- a/Capy64/Runtime/Libraries/GPU.cs +++ b/Capy64/Runtime/Libraries/GPU.cs @@ -284,7 +284,7 @@ public class GPU : IComponent { var L = Lua.FromIntPtr(state); - var x1 = (int)L.CheckNumber(1); + var x1 = (int)L.CheckNumber(1) - 1; // do not question, please var y1 = (int)L.CheckNumber(2); var x2 = (int)L.CheckNumber(3); var y2 = (int)L.CheckNumber(4);