Fix #11 gpu.drawLine being offset

This commit is contained in:
Alessandro Proto 2023-03-21 21:26:33 +01:00
parent f124520a2f
commit e926bd6d6b

View file

@ -284,7 +284,7 @@ public class GPU : IComponent
{ {
var L = Lua.FromIntPtr(state); 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 y1 = (int)L.CheckNumber(2);
var x2 = (int)L.CheckNumber(3); var x2 = (int)L.CheckNumber(3);
var y2 = (int)L.CheckNumber(4); var y2 = (int)L.CheckNumber(4);