From 7b692e5e2d87ee93d8c71d9663a673ea3fae0641 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife <55228370+AUnicornWithNoLife@users.noreply.github.com> Date: Tue, 25 Oct 2022 19:26:17 +0100 Subject: [PATCH] Update main.c --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 1d2b273..bb31d2a 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -// Created by Rose Apollo +// Created by Rose Apollo ((github) AUnicornWithNoLife) #include #include @@ -19,7 +19,7 @@ bool isBitTrue(char val, int pos) // check if the bit from val in position pos i char* getCharFromFont(char input) // get a pointer to the relative char from the font { - return &*font8x8[(int)input]; + return &*font8x8[(int)input]; // char can't be used to access array, so has to be cast to an int (ik i hate this too) } void stringToFont(char* input, int width, char output[SIZE][width]) @@ -28,7 +28,7 @@ void stringToFont(char* input, int width, char output[SIZE][width]) for (int i = 0; i < length; i++) // loop through characters { - char* fontChar = getCharFromFont(*input); + char* fontChar = getCharFromFont(*input); // get font pointer for (int x = 0; x < SIZE; x++) // loop from top to bottom {