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
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 // Define the text we're going to draw in the rectangle
int wordIndex = 0; int wordIndex = 0;
int wordCount = 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 // Initialize the font size we're going to use
int fontSize = 40; int fontSize = 40;