summaryrefslogtreecommitdiff
path: root/sponge.h
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-22 22:13:10 +0200
committerkkard2 <[email protected]>2025-09-22 22:13:10 +0200
commitbcfd31ce9ea9ea067b285a78eb747e3d68561bca (patch)
tree6e2ffc638dbd89dae0709bb30f8abfa40188eb98 /sponge.h
parent42d3b218942d7ece8a15ef9298c8cd13974aa4c9 (diff)
make x11 run again
Diffstat (limited to 'sponge.h')
-rw-r--r--sponge.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sponge.h b/sponge.h
index 51e1b7d..38a39ba 100644
--- a/sponge.h
+++ b/sponge.h
@@ -1,4 +1,5 @@
#include <stdint.h>
+#include <stddef.h>
#include <math.h>
typedef union {
@@ -412,7 +413,6 @@ void sponge_draw_line(sponge_Texture c, sponge_Vec2I v0, sponge_Vec2I v1, sponge
int32_t dx = SPONGE_ABS(v1.x - v0.x);
int32_t dy = SPONGE_ABS(v1.y - v0.y);
- int32_t d = (2 * dy) - dx;
int32_t sx = (v0.x < v1.x) ? 1 : -1;
int32_t sy = (v0.y < v1.y) ? 1 : -1;