Change words pointer to const for text alignment

To allow compilation with strict GCC
This commit is contained in:
Jochem Herz 2026-04-11 23:49:15 +02:00 committed by GitHub
parent de95b3aa70
commit faa387c0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ int main(void)
// Define the text we're going to draw in the rectangle
int wordIndex = 0;
int wordCount = 0;
char **words = TextSplit("raylib is a simple and easy-to-use library to enjoy videogames programming", ' ', &wordCount);
const char **words = TextSplit("raylib is a simple and easy-to-use library to enjoy videogames programming", ' ', &wordCount);
// Initialize the font size we're going to use
int fontSize = 40;