From fc35c0f8ed323d70c8f02dd131c9a531d02f6cab Mon Sep 17 00:00:00 2001 From: DrNuget Date: Mon, 3 Nov 2025 02:21:06 +0200 Subject: make coordinates start from 0 --- src/brailleboi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/brailleboi.c') diff --git a/src/brailleboi.c b/src/brailleboi.c index d7f3e67..8b331e5 100644 --- a/src/brailleboi.c +++ b/src/brailleboi.c @@ -41,6 +41,8 @@ void braillePrint(int data) int braillePlot(int x, int y, image_buffer* buf) { + x = x + 1; + y = y + 1; //Check if plot is within bounds if ((x>buf->width) | (y>buf->height)) return 1; -- cgit v1.2.3