commit a95103b1fb47458c53198b192fe0e66885be7c2a
parent a06aee92ee67d30a2c7b51b65c455ea55ef667fd
Author: Lou Woell <lou.woell@posteo.de>
Date: Thu, 1 Feb 2024 18:14:00 +0100
Fix offcenter Pause Text
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pong.c b/pong.c
@@ -166,13 +166,14 @@ void DrawGame(Game *game) {
int main() {
const char * title = "Pong Wars";
- const int pause_text_width = MeasureText(PAUSE_TEXT, FONTSIZE);
InitWindow(WIDTH,HEIGHT, title);
bool pause = 0;
int framesCounter = 0;
+ const int pause_text_width = MeasureText(PAUSE_TEXT, FONTSIZE);
+
Game game = {0};
SetGame(&game);