fix(lua): numberEdit getter and prevent fillTriangle crash (#7288)

This commit is contained in:
Wilhelm
2026-05-06 17:07:55 +10:00
committed by GitHub
parent 2fb4faa91d
commit fc61006fe4
3 changed files with 16 additions and 2 deletions
+2 -2
View File
@@ -1337,8 +1337,8 @@ next2:
}
next:
// Second half
dx1 = (int8_t)(x3 - x2); if(dx1<0) { dx1 = -dx1; signx1 = -1; } else signx1 = 1;
dy1 = (int8_t)(y3 - y2);
dx1 = (coord_t)(x3 - x2); if(dx1<0) { dx1 = -dx1; signx1 = -1; } else signx1 = 1;
dy1 = (coord_t)(y3 - y2);
t1x = x2;
if (dy1 > dx1) { // swap values