diff options
| author | kkard2 <[email protected]> | 2025-09-22 22:13:10 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2025-09-22 22:13:10 +0200 |
| commit | bcfd31ce9ea9ea067b285a78eb747e3d68561bca (patch) | |
| tree | 6e2ffc638dbd89dae0709bb30f8abfa40188eb98 /sponge.h | |
| parent | 42d3b218942d7ece8a15ef9298c8cd13974aa4c9 (diff) | |
make x11 run again
Diffstat (limited to 'sponge.h')
| -rw-r--r-- | sponge.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
