mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 03:09:17 -05:00
Edit type of string (const char* -> const char [])
@ -83,7 +83,7 @@ int screenCenterY = GetScreenHeight() / 2;
|
|||||||
Next you need to compute how large the text is, and offset the center by half the text size.
|
Next you need to compute how large the text is, and offset the center by half the text size.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
const char* text = "Congrats! You created your first window!";
|
const char text[] = "Congrats! You created your first window!";
|
||||||
|
|
||||||
int fontSize = 20;
|
int fontSize = 20;
|
||||||
int textWidth = MeasureText(text, fontSize);
|
int textWidth = MeasureText(text, fontSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user