commit 28f4f6f0375edf40ecc380e2265557c0975bd7d3
parent 1c12b4e33b94d6f02a8f004c9db427b9532466e3
Author: krasjet
Date: 2021-01-27 13:18Z

fix inverted coord

Diffstat:
Mbtbuf.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/btbuf.c b/btbuf.c @@ -3,8 +3,9 @@ #include "btbuf.h" +/* (0,0) = lower left corner */ #define draw(x, y) \ - buf->buf[(y)*buf->width + (x)] = BT_BLACK + buf->buf[(buf->height-y)*buf->width + (x)] = BT_BLACK /* clamp val to [a,b] */ #define clamp(val, a, b) \